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. -------------------------------------------------------------------------- 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) --------------------------------------------------------------------------
Common: CommonData/SwooshWatermark Common: General/CellToMat Common: General/DeBlankLT Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle Common: Graphics/XLabelS Common: Graphics/YLabelS Common: Graphics/ZLabelS Common: Time/DTAToDTS Common: Time/DTSToDTA Common: Time/Date2JD Common: Time/JD2Date Common: Time/JDToDateString Math: MathUtils/R2P5
Back to the SC Module page