GroundTrack:

Path: CubeSat/Visualization

% Plot an orbit track. Converts the inertial positions to planet-fixed.
 Pass in the time array and the initial epoch. The epoch may be a Julian date
 or a datetime array. The initial position is marked with an 'o'. Ground
 stations are marked with 'x'.

 You generate the planet data structure like this example;
 The replication of the image map is needed because the png is gray scale.

   p = imread('planet.png');
   p3(:,:,1) = p;
   p3(:,:,2) = p;
   p3(:,:,3) = p;
   planet.planetMap = p3;
   planet.radius = 1000;
   planet.name = 'MyPlanet';

 Type GroundTrack for a demo showing an orbit around the Earth.
--------------------------------------------------------------------------
   Form:
   GroundTrack( r, t, jD0, planet, gS )
   GroundTrack( r, t, datetime, planet, gS )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r                (3*n,:) ECI position vectors (km)
   t                (1,:) Time array (sec)
   jD0              (1,1) Epoch Julian date
             -or- 
   datetime         (1,6) [year month day hour minute seconds]

   planet           (1,:) Planet (default is earth)
             -or-
                    (.)
                          (1,:) name
                          (:)   planetMap
                          (:)   planetColorMap (optional)
                          (1,1) radius (km)
   gS               (2,:) Ground stations [lat;lon] (deg)

   -------
   Outputs
   -------
   none   

--------------------------------------------------------------------------
 See also ECIToPlanet, R2LatLon, Date2JD
--------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
AerospaceUtils: Coord/R2LatLon
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/Axis3D
Common: Graphics/Ellipsd
Common: Graphics/Map
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Common: Time/JD2T
Common: Time/JDToMidnight
Common: Time/T2JD
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit
Math: MathUtils/R2P5
Math: Trigonometry/CosD
Math: Trigonometry/SinD
SC: BasicOrbit/E2M
SC: BasicOrbit/Nu2E
SC: BasicOrbit/Nu2M
SC: BasicOrbit/Period
SC: BasicOrbit/RV2El
SC: BasicOrbit/RVFromKepler
SC: Ephem/ECIToPlanet
SC: Ephem/EOfE
SC: Ephem/EarthNut
SC: Ephem/EarthPre
SC: Ephem/EarthRot
SC: Ephem/GMSTime
SC: Ephem/MSidDay
SC: Ephem/MoonRot
SC: Ephem/Moons
SC: Ephem/NutDelta
SC: Ephem/ObOfE
SC: Ephem/TruEarth
SC: SCData/sCTConstants
SC: SCMat/EarthMR

Back to the CubeSat Module page