ReadBSPFile:

Path: SC/Ephem

% Read a bsp file.
 If no outputs are requested it will display the trajectory in 3D and
 the position and velocity in 2D plots.
 
 Type ReadBSPFile for a demo for Cassini. You must have
 '030201AP_SK_SM546_T45.bsp' and 'naif0008.tls' in the directory and the
 CSPICE library and mice toolkit installed.

 https://naif.jpl.nasa.gov/naif/toolkit_MATLAB.html
--------------------------------------------------------------------------
   Form: 
   [r,v,t] = ReadBSPFile( varargin )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   varargin
   'name'                  (1,:) Name of the spacecraft
   'bsp'                   (1,:) BSP file (need not have .bsp at the end)
   'frame'                 (1,:) Frame name (like 'J2000')
   'center'                (1,:) Center string name (like 'SATURN BARYCENTER')
   'jd start'              (1,1) Start Julian date
   'jd end'                (1,1) End Julian date
   'leap seconds'          (1,:) Leap second file (like naif0008.tls);
   'n steps'               (1,1) Number of time steps
   'aberration correction' (1,:) Aberration correction type

   -------
   Outputs
   -------
   r (3,:) Position (km)
   v (3,:) Velocity (km/s)
   t (1,:) Time vector (s)

--------------------------------------------------------------------------

Children:

Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Time/Date2JD
Common: Time/JDToDateString

Back to the SC Module page