Path: SC/Ephem
% Generate the moon vector in an earth or spacecraft centered frame. The earth-centered inertial frame is default or, if a spacecraft vector is input, the vector is in the spacecraft centered frame. This is the low precision model. See also MoonV2. Since version 1. -------------------------------------------------------------------------- Form: [u, r] = MoonV1( jd, rSc ) -------------------------------------------------------------------------- ------ Inputs ------ jd (:) Julian date rsc (:) Spacecraft vector in the ECI frame (km) ------- Outputs ------- u (3,:) Unit moon vector r (:) Distance from origin to moon (km) -------------------------------------------------------------------------- References: The 1993 Astronomical Almanac, U.S. Government Printing Office, p. D46. --------------------------------------------------------------------------
Common: Time/Date2JD Math: Linear/Mag Math: Linear/Unit Math: Trigonometry/CosD Math: Trigonometry/SinD
Back to the SC Module page