Path: SC/Ephem
% Create a bsp file
.bsp is automatically added to filename. It writes 2 intermediate files
filename_setup.txt and filename_input.txt. It is limited to state
vector inputs. This requires mice. This function will delete an existing
bsp file of name 'file name')
Type WriteBSPFile for a demo for an Earth orbit.
--------------------------------------------------------------------------
Form:
WriteBSPFile( varargin )
--------------------------------------------------------------------------
------
Inputs
------
varargin {:} Parameter pairs
'file name' (1,:)
'spacecraft id' (1,1)
'center id' (1,1)
'info' (1,:) Any text you want
'julian date start' (1,1)
'time' (1,n) Time (s)
'position' (3,n) Position (km)
'velocity' (3,n) Velocity (km/s)
'polynomial degree' (1,1)
'reference frame' (1,:)
-------
Outputs
-------
None
--------------------------------------------------------------------------
Reference: B.V. Semenov, "MKSPK User's Guide", March 01, 2016.
--------------------------------------------------------------------------
Orbit: OrbitMechanics/RVOrbGen SC: BasicOrbit/El2RV Common: Time/Date2JD Common: Time/JDToDateString
Back to the SC Module page