LatLonAltToEF:

Path: AerospaceUtils/Coord

% Convert [latitude;longitude;altitude] to an earth fixed position vector.
 Altitude is the distance above the subsatellite point. Assumes an
 ellipsoidal planet.

 Type LatLonAltToEF for a demo.
--------------------------------------------------------------------------
   Form:
   r = LatLonAltToEF( x, f, a )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x         (3,:)   [lat (rad); lon (rad); altitude (km)]
   f         (1,1)   Flattening factor
   a         (1,1)   Equatorial radius
   tol       (1,1)   Tolerance

   -------
   Outputs
   -------
   r         (3,:)   Vectors

--------------------------------------------------------------------------
   Reference: Escobal, P. Methods of Orbit Determination.
--------------------------------------------------------------------------

Children:

Common: Database/Constant

Back to the AerospaceUtils Module page