SP3 (.sp3)

  • Import fully supports the SP3-a and the SP3-c format.

BackgroundBackground

    SP3 geospatial file format.
    National Geodetic Survey standard format.
    Stores information about the orbits of GPS satellites.
    SP3 is an acronym derived from Standard Product Version 3.
    ASCII format.
    SP3 was introduced in 1991 by the U.S. National Oceanic and Atmospheric Administration.

Import and ExportImport and Export

  • Import["file.sp3"] imports an SP3 file, returning all position data as an array.
  • Import["file.sp3"] returns a three-dimensional array that represents the positions of several satellites at different times.
  • Import["file.sp3",elem] imports the specified element from a SP3 file.
  • Import["file.sp3",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","SP3"] or Import["file",{"SP3",elem,}].
  • See the reference pages for full general information on Import.
  • ImportString supports the SP3 format.

ElementsElements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "Positions"spatial positions of all satellites at different times, given in kilometers
    "Velocities"velocities of satellites at different times, given in meters per second
    "ClockCorrections"clock correction data for all satellites at different times, given in microseconds
    "ClockCorrectionChangeRates"change rate of clock corrections, given in nanoseconds per second
    "Times"time stamps of orbital and clock data
  • Import uses the element by default.
  • Meta-information elements:
  • "Agency"identification of the data provider
    "Comments"user comments stored in the file
    "CoordinateSystem"coordinate system in which spatial data is given
    "DataDescriptorCode"describes the type of data used in the file
    "SatelliteID"satellite identification strings
    "TimeInterval"time interval in seconds at which orbital data is represented
    "ModifiedJulianDays"date stamp of the first record in the file, given in Julian days after November 17, 1858
    "GPSDate"full weeks and seconds passed since the origin of the GPS time system
    "OrbitalDataType"orbital data type
    "Version"file format version
    "OrbitAccuracy"orbit accuracy for each satellite in millimeters
  • Additional elements specific to the SP3-c format version:
  • "PositionErrors"standard deviation of position data in millimeters
    "VelocityErrors"standard deviation of velocity data in millimeters per second
    "ClockCorrectionErrors"standard deviation of clock corrections in picoseconds
    "ClockCorrectionChangeRateErrors"standard deviation of clock correction change rates in picoseconds per second
    "PositionCorrelations"correlation coefficients for position and clock correction data
    "VelocityCorrelations"correlation coeffiecients for velocities and clock correction change rate data
    "SatelliteSystems"GPS satellite system
    "TimeSystem"time reference system used in the file

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Import and plot the trajectories of all satellites represented in a sample file:

In[1]:=
Click for copyable input
Out[1]=

Import and show the trajectory of a single satellite:

In[1]:=
Click for copyable input
Out[1]=

Get the list of available Import formats:

In[1]:=
Click for copyable input
Out[1]=

Import all position data from the file:

In[1]:=
Click for copyable input

The resulting array represents the spatial positions of 29 satellites at 144 different times:

In[2]:=
Click for copyable input
Out[2]=

This shows the orbits of all 29 satellites around the Earth:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2008
(7.0)