public class SP3 extends Object implements EphemerisFile<SP3.SP3Coordinate,SP3.SP3Ephemeris>
Modifier and Type | Class and Description |
---|---|
static class |
SP3.SP3Coordinate
A single record of position clock and possibly derivatives in an SP3 file.
|
class |
SP3.SP3Ephemeris
An ephemeris for a single satellite in a SP3 file.
|
static class |
SP3.SP3FileType
File type indicator.
|
static class |
SP3.SP3OrbitType
Orbit type indicator.
|
EphemerisFile.EphemerisSegment<C extends TimeStampedPVCoordinates>, EphemerisFile.SatelliteEphemeris<C extends TimeStampedPVCoordinates,S extends EphemerisFile.EphemerisSegment<C>>
Modifier and Type | Field and Description |
---|---|
static String |
SP3_FRAME_CENTER_STRING
String representation of the center of ephemeris coordinate system.
|
Constructor and Description |
---|
SP3(double mu,
int interpolationSamples,
Function<? super String,? extends Frame> frameBuilder)
Create a new SP3 file object.
|
Modifier and Type | Method and Description |
---|---|
void |
addSatellite(String satId)
Add a new satellite with a given identifier to the list of
stored satellites.
|
void |
addSatelliteCoordinate(String satId,
SP3.SP3Coordinate coord)
Adds a new P/V coordinate for a given satellite.
|
boolean |
containsSatellite(String satId)
Tests whether a satellite with the given id is contained in this orbit
file.
|
double |
getAccuracy(int index)
Get the formal accuracy for a satellite.
|
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.
|
SP3.SP3OrbitType |
getOrbitType()
Returns the
SP3.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,SP3.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.
|
TimeSystem |
getTimeSystem()
Returns the
TimeSystem used to time-stamp position entries. |
SP3.SP3FileType |
getType()
Returns the
SP3.SP3FileType associated with this SP3 file. |
void |
setAccuracy(int index,
double accuracy)
Set the formal accuracy for a satellite.
|
void |
setAgency(String agencyStr)
Set the agency string for this SP3 file.
|
void |
setCoordinateSystem(String system)
Set the coordinate system used for the orbit entries.
|
void |
setDataUsed(String data)
Set the data used indicator for this SP3 file.
|
void |
setDayFraction(double fraction)
Set the day fraction for this SP3 file.
|
void |
setEpoch(AbsoluteDate time)
Set the epoch of the SP3 file.
|
void |
setEpochInterval(double interval)
Set the epoch interval for this SP3 file.
|
void |
setFilter(CartesianDerivativesFilter filter)
Set the derivatives filter.
|
void |
setGpsWeek(int week)
Set the GPS week of the SP3 file.
|
void |
setJulianDay(int day)
Set the julian day for this SP3 file.
|
void |
setNumberOfEpochs(int epochCount)
Set the number of epochs as contained in the SP3 file.
|
void |
setOrbitTypeKey(String oTypeKey)
Set the orbit type key for this SP3 file.
|
void |
setSecondsOfWeek(double seconds)
Set the seconds of the GPS week for this SP3 file.
|
void |
setTimeSystem(TimeSystem system)
Set the time system used in this SP3 file.
|
void |
setType(SP3.SP3FileType fileType)
Set the file type for this SP3 file.
|
public static final String SP3_FRAME_CENTER_STRING
public SP3(double mu, int interpolationSamples, Function<? super String,? extends Frame> frameBuilder)
mu
- is the standard gravitational parameter in m^3 / s^2.interpolationSamples
- number of samples to use in interpolation.frameBuilder
- for constructing a reference frame from the identifierpublic void setFilter(CartesianDerivativesFilter filter)
filter
- that indicates which derivatives of position are available.public SP3.SP3FileType getType()
SP3.SP3FileType
associated with this SP3 file.public void setType(SP3.SP3FileType fileType)
fileType
- the file type to be setpublic TimeSystem getTimeSystem()
TimeSystem
used to time-stamp position entries.TimeSystem
of the orbit filepublic void setTimeSystem(TimeSystem system)
system
- the time system to be setpublic String getDataUsed()
public void setDataUsed(String data)
data
- the data used indicator to be setpublic AbsoluteDate getEpoch()
public void setEpoch(AbsoluteDate time)
time
- the epoch to be setpublic int getGpsWeek()
public void setGpsWeek(int week)
week
- the GPS week to be setpublic double getSecondsOfWeek()
public void setSecondsOfWeek(double seconds)
seconds
- the seconds to be setpublic int getJulianDay()
public void setJulianDay(int day)
day
- the julian day to be setpublic double getDayFraction()
public void setDayFraction(double fraction)
fraction
- the day fraction to be setpublic double getEpochInterval()
public void setEpochInterval(double interval)
interval
- the interval between orbit entriespublic int getNumberOfEpochs()
public void setNumberOfEpochs(int epochCount)
epochCount
- the number of epochs to be setpublic String getCoordinateSystem()
public void setCoordinateSystem(String system)
system
- the coordinate system to be setpublic SP3.SP3OrbitType getOrbitType()
SP3.SP3OrbitType
for this SP3 file.public String getOrbitTypeKey()
public void setOrbitTypeKey(String oTypeKey)
oTypeKey
- the orbit type key to be setpublic String getAgency()
public void setAgency(String agencyStr)
agencyStr
- the agency string to be setpublic void addSatellite(String satId)
satId
- the satellite identifierpublic Map<String,SP3.SP3Ephemeris> getSatellites()
EphemerisFile
getSatellites
in interface EphemerisFile<SP3.SP3Coordinate,SP3.SP3Ephemeris>
public int getSatelliteCount()
public void setAccuracy(int index, double accuracy)
index
- is the index of the satellite.accuracy
- of the satellite, in m.public double getAccuracy(int index)
index
- is the index of the satellite.public boolean containsSatellite(String satId)
satId
- the satellite idtrue
if the satellite is contained in the file,
false
otherwisepublic void addSatelliteCoordinate(String satId, SP3.SP3Coordinate coord)
satId
- the satellite identifiercoord
- the P/V coordinate of the satelliteCopyright © 2002-2021 CS GROUP. All rights reserved.