Package org.orekit.files.sp3
Class SP3File
- java.lang.Object
-
- org.orekit.files.sp3.SP3File
-
- All Implemented Interfaces:
EphemerisFile
public class SP3File extends Object implements EphemerisFile
Represents a parsed SP3 orbit file.- Author:
- Thomas Neidhart, Evan Ward
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSP3File.SP3CoordinateA single record of position clock and possibly derivatives in an SP3 file.classSP3File.SP3EphemerisAn ephemeris for a single satellite in a SP3 file.static classSP3File.SP3FileTypeFile type indicator.static classSP3File.SP3OrbitTypeOrbit type indicator.static classSP3File.TimeSystemTime system used throughout this SP3 file.-
Nested classes/interfaces inherited from interface org.orekit.files.general.EphemerisFile
EphemerisFile.EphemerisSegment, EphemerisFile.SatelliteEphemeris
-
-
Field Summary
Fields Modifier and Type Field Description static StringSP3_FRAME_CENTER_STRINGString representation of the center of ephemeris coordinate system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSatellite(String satId)Add a new satellite with a given identifier to the list of stored satellites.booleancontainsSatellite(String satId)Tests whether a satellite with the given id is contained in this orbit file.StringgetAgency()Returns the agency that prepared this SP3 file.StringgetCoordinateSystem()Returns the coordinate system of the entries in this orbit file.StringgetDataUsed()Returns the data used indicator from the SP3 file.doublegetDayFraction()Returns the day fraction for this SP3 file.AbsoluteDategetEpoch()Returns the start epoch of the orbit file.doublegetEpochInterval()Returns the time interval between epochs (in seconds).intgetGpsWeek()Returns the GPS week as contained in the SP3 file.intgetJulianDay()Returns the julian day for this SP3 file.intgetNumberOfEpochs()Returns the number of epochs contained in this orbit file.SP3File.SP3OrbitTypegetOrbitType()Returns theSP3File.SP3OrbitTypefor this SP3 file.StringgetOrbitTypeKey()Returns the orbit type key for this SP3 file.intgetSatelliteCount()Get the number of satellites contained in this orbit file.Map<String,SP3File.SP3Ephemeris>getSatellites()Get the loaded ephemeris for each satellite in the file.doublegetSecondsOfWeek()Returns the seconds of the GPS week as contained in the SP3 file.SP3File.TimeSystemgetTimeSystem()Returns theSP3File.TimeSystemused to time-stamp position entries.SP3File.SP3FileTypegetType()Returns theSP3File.SP3FileTypeassociated with this SP3 file.
-
-
-
Field Detail
-
SP3_FRAME_CENTER_STRING
public static final String SP3_FRAME_CENTER_STRING
String representation of the center of ephemeris coordinate system.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public SP3File.SP3FileType getType()
Returns theSP3File.SP3FileTypeassociated with this SP3 file.- Returns:
- the file type for this SP3 file
-
getTimeSystem
public SP3File.TimeSystem getTimeSystem()
Returns theSP3File.TimeSystemused to time-stamp position entries.- Returns:
- the
SP3File.TimeSystemof the orbit file
-
getDataUsed
public String getDataUsed()
Returns the data used indicator from the SP3 file.- Returns:
- the data used indicator (unparsed)
-
getEpoch
public AbsoluteDate getEpoch()
Returns the start epoch of the orbit file.- Returns:
- the start epoch
-
getGpsWeek
public int getGpsWeek()
Returns the GPS week as contained in the SP3 file.- Returns:
- the GPS week of the SP3 file
-
getSecondsOfWeek
public double getSecondsOfWeek()
Returns the seconds of the GPS week as contained in the SP3 file.- Returns:
- the seconds of the GPS week
-
getJulianDay
public int getJulianDay()
Returns the julian day for this SP3 file.- Returns:
- the julian day
-
getDayFraction
public double getDayFraction()
Returns the day fraction for this SP3 file.- Returns:
- the day fraction
-
getEpochInterval
public double getEpochInterval()
Returns the time interval between epochs (in seconds).- Returns:
- the time interval between epochs
-
getNumberOfEpochs
public int getNumberOfEpochs()
Returns the number of epochs contained in this orbit file.- Returns:
- the number of epochs
-
getCoordinateSystem
public String getCoordinateSystem()
Returns the coordinate system of the entries in this orbit file.- Returns:
- the coordinate system
-
getOrbitType
public SP3File.SP3OrbitType getOrbitType()
Returns theSP3File.SP3OrbitTypefor this SP3 file.- Returns:
- the orbit type
-
getOrbitTypeKey
public String getOrbitTypeKey()
Returns the orbit type key for this SP3 file.- Returns:
- the orbit type key
- Since:
- 9.3
-
getAgency
public String getAgency()
Returns the agency that prepared this SP3 file.- Returns:
- the agency
-
addSatellite
public void addSatellite(String satId)
Add a new satellite with a given identifier to the list of stored satellites.- Parameters:
satId- the satellite identifier
-
getSatellites
public Map<String,SP3File.SP3Ephemeris> getSatellites()
Description copied from interface:EphemerisFileGet the loaded ephemeris for each satellite in the file.- Specified by:
getSatellitesin interfaceEphemerisFile- Returns:
- a map from the satellite's ID to the information about that satellite contained in the file.
-
getSatelliteCount
public int getSatelliteCount()
Get the number of satellites contained in this orbit file.- Returns:
- the number of satellites
-
containsSatellite
public boolean containsSatellite(String satId)
Tests whether a satellite with the given id is contained in this orbit file.- Parameters:
satId- the satellite id- Returns:
trueif the satellite is contained in the file,falseotherwise
-
-