Visibility parameters (angles, distance, ...) for a spherical body
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")
Computes various visibility parameters:
- satellite's semi view-angle (sat): angle between the descending vertical and the direction of the target location
- satellite's elevation (elev): elevation of the satellite as seen from the target location
- satellite's incidence (incid = pi/2 - elev): incidence of the target-satellite direction from the target location
- distance (dist): distance between the satellite and the target location
- centre angle (cen): angle between the (body centre -> satellite) direction and the (body centre -> target location) direction.
Given the distance from the body centre to the satellite (sat_radius), the distance from the body centre to the target (target_radius) and one of the following parameters (type_par1):
- type_par1 = 'sat' , par1 = satellite's semi view angle.
- type_par1 = 'elev' , par1 = elevation from the target location.
- type_par1 = 'incid' , par1 = incidence (=pi/2-elev) from the target location.
- type_par1 = 'dist' , par1 = distance between the target location and the satellite.
- type_par1 = 'cen' , par1 = centre angle: angle from the body centre between the target location and the satellite.
the function computes par2 whose type is defined by type_par2.
type_par2 can also be an array of strings (any of the 5 parameters above), or 'all' and in that case the result is a structure whose fields are the 5 parameters above
Notes:
- A spherical body is assumed.
- The function works even if "target_radius" is greater then "sat_radius".
- If the input parameter is 'sat', 'elev" or "incid", there may be two solutions. Only one is computed, it corresponds to the smallest value of the centre angle.
Distance from the satellite to the body centre [m] (Px1 or PxN)
Distance from the target to the body centre [m] (Px1 or PxN)
(string) Type of input parameter 'par1'. It can be 'sat', 'elev', 'incid', 'dist', 'cen'
Satellite's semi view angle, elevation, indicence, distance or centre angle [rad,m] (Px1 or PxN)
(string) Type of output parameter: 'sat', 'elev', 'incid', 'dist', 'cen' or a vector containing any of them, or 'all'.
output parameter(s). Structure if type_par2 == "all". [rad,m] (PxN)
CNES - DCT/SB