Path: AerospaceUtils/Coord
% Compute ECEF position from latitude, longitude, altitude. Assumes spherical planet. -------------------------------------------------------------------------- Form: rECEF = LLAToECEF( lla, rP ) -------------------------------------------------------------------------- ------ Inputs ------ lla (3,:) Latitude [rad], longitude [rad], altitude [km] rP (1,1) Radius of planet (for Earth: 6378.14) [km] ------- Outputs ------- rECEF (3,1) ECEF position vector [km] --------------------------------------------------------------------------
Back to the AerospaceUtils Module page