<< CL_gm_reflectionPtSph Geometry and events CL_gm_stationVisiLocus >>

CelestLab >> Geometry and events > CL_gm_stationPointing

CL_gm_stationPointing

Spherical coordinates of object in local frame of location.

Calling Sequence

[res1,res2,...] = CL_gm_stationPointing(stations,pos [, res,er,obla])

Description

Parameters

stations:

Stations positions in elliptical (geodetic) coordinates [long,lat,alt] [rad,m] (3xP)

pos:

Positions of object in the same frame as "stations", in cartesian coordinates [m] (3xN)

res:

(string) vector of names: "azim", "elev", "dist", "s" or "l". Default is ["azim", "elev", "dist"] (1xQ)

er :

(optional) Planet's equatorial radius. Default is %CL_eqRad [m] (1x1)

obla :

(optional) Planet's oblateness. Default is %CL_obla (1x1)

res1, res2...:

results: Elevation [rad] (PxN), azimuth [rad] (PxN), distance [m] (PxN), structure (PxN fields) or list

Authors

See also

Examples

// satellite positions
pos = [[7.e6; 0; 0], [7.e6; 1.e3; 0], [7.e6; 2.e3; 0]];
// ground stations (geodetic coordinates)
stations = [[0;0;0], [0.1; 0.2; 0]]
// Coordinates in topocentric North frame (size of results: 2x3)
[azim,elev,dist] = CL_gm_stationPointing(stations, pos);
// List of 3x1 coordinates
l = CL_gm_stationPointing(stations, pos, res="l");

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