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 class
SP3File.SP3Coordinate
A single record of position clock and possibly derivatives in an SP3 file.class
SP3File.SP3Ephemeris
An ephemeris for a single satellite in a SP3 file.static class
SP3File.SP3FileType
File type indicator.static class
SP3File.SP3OrbitType
Orbit type indicator.static class
SP3File.TimeSystem
Time 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 String
SP3_FRAME_CENTER_STRING
String representation of the center of ephemeris coordinate system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSatellite(String satId)
Add a new satellite with a given identifier to the list of stored satellites.boolean
containsSatellite(String satId)
Tests whether a satellite with the given id is contained in this orbit file.String
getAgency()
Returns the agency that prepared this SP3 file.String
getCoordinateSystem()
Returns the coordinate system of the entries in this orbit file.String
getDataUsed()
Returns the data used indicator from the SP3 file.double
getDayFraction()
Returns the day fraction for this SP3 file.AbsoluteDate
getEpoch()
Returns the start epoch of the orbit file.double
getEpochInterval()
Returns the time interval between epochs (in seconds).int
getGpsWeek()
Returns the GPS week as contained in the SP3 file.int
getJulianDay()
Returns the julian day for this SP3 file.int
getNumberOfEpochs()
Returns the number of epochs contained in this orbit file.SP3File.SP3OrbitType
getOrbitType()
Returns theSP3File.SP3OrbitType
for this SP3 file.String
getOrbitTypeKey()
Returns the orbit type key for this SP3 file.int
getSatelliteCount()
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.double
getSecondsOfWeek()
Returns the seconds of the GPS week as contained in the SP3 file.SP3File.TimeSystem
getTimeSystem()
Returns theSP3File.TimeSystem
used to time-stamp position entries.SP3File.SP3FileType
getType()
Returns theSP3File.SP3FileType
associated 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.SP3FileType
associated with this SP3 file.- Returns:
- the file type for this SP3 file
-
getTimeSystem
public SP3File.TimeSystem getTimeSystem()
Returns theSP3File.TimeSystem
used to time-stamp position entries.- Returns:
- the
SP3File.TimeSystem
of 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.SP3OrbitType
for 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:EphemerisFile
Get the loaded ephemeris for each satellite in the file.- Specified by:
getSatellites
in 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:
true
if the satellite is contained in the file,false
otherwise
-
-