<< CL_gm_stationVisiLocus Geometry and events CL_stela_area >>

CelestLab >> Geometry and events > CL_gm_visiParams

CL_gm_visiParams

Visibility parameters (angles, distance, ...) for a spherical body

Calling Sequence

par2 = CL_gm_visiParams(sat_radius,target_radius,type_par1,par1,type_par2)
[res1,..resN]=CL_gm_visiParams(sat_radius,target_radius,type_par1,par1,[type1,..,typeN])
[result]=CL_gm_visiParams(sat_radius,target_radius,type_par1,par1,"all")

Description

Parameters

sat_radius:

Distance from the satellite to the body centre [m] (Px1 or PxN)

target_radius:

Distance from the target to the body centre [m] (Px1 or PxN)

type_par1:

(string) Type of input parameter 'par1'. It can be 'sat', 'elev', 'incid', 'dist', 'cen'

par1:

Satellite's semi view angle, elevation, indicence, distance or centre angle [rad,m] (Px1 or PxN)

type_par2:

(string) Type of output parameter: 'sat', 'elev', 'incid', 'dist', 'cen' or a vector containing any of them, or 'all'.

par2:

output parameter(s). Structure if type_par2 == "all". [rad,m] (PxN)

Authors

Examples

eqRad = CL_dataGet("eqRad");
sat_r = eqRad + 700.e3; // 700 km altitude
target_r = eqRad + 0; // Ground

// Distance to Ground incidence:
[incid]=CL_gm_visiParams(sat_r,target_r,'dist',800.e3,'incid')

// Satellite view angle to Ground elevation:
[elev]=CL_gm_visiParams(sat_r,target_r,'sat',CL_deg2rad(10),'elev')

// Centre angle to distance:
[dist]=CL_gm_visiParams(sat_r,target_r,'cen',CL_deg2rad(7),'dist')

// Ground incidence to satellite view angle and distance:
[sat,dist]=CL_gm_visiParams(sat_r,target_r,'incid',CL_deg2rad(15),['sat','dist'])

// Satellite view angle to everything:
[result]=CL_gm_visiParams(sat_r,target_r,'sat',CL_deg2rad(37),'all');

Report an issue
<< CL_gm_stationVisiLocus Geometry and events CL_stela_area >>