Code 500 PC Ephemeris File
|Top Previous Next
The Code 500 Ephemeris file is an Ephemeris file format for use with many NASA applications that requires the NASA pack. This format is used mostly at the Goddard Space Flight Center (GSFC) and can be used for both input and output of Spacecraft orbital data. See the Working with Ephemerides guide for more information about creating and importing a Code 500 Ephemeris file.
The Code 500 Ephemeris is a binary file whose specifications are available from NASA GSFC. This format contains two headers and multiple chronologically ordered data points where the step size is fixed. Additionally, the specific binary formatting of the file can vary and may be written in either PC (little endian) or HP (big endian) formats. As for supported reference frames, the Code 500 format supports both Mean of J2000 and True of Date.
To read or write a Code 500 Ephemeris to file with varying endianness and other properties, consider the following examples. These examples assume that an appropriate Ephemeris has been instantiated in script.