public class SP3File extends Object implements OrbitFile, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SP3File.SP3FileType
File type indicator.
|
static class |
SP3File.SP3OrbitType
Orbit type indicator.
|
OrbitFile.TimeSystem
Constructor and Description |
---|
SP3File()
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,
SatelliteTimeCoordinate 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.
|
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 the
SP3File.SP3OrbitType for this SP3 file. |
SatelliteInformation |
getSatellite(int n)
Returns the nth satellite as contained in the SP3 file.
|
SatelliteInformation |
getSatellite(String satId)
Get additional information about a satellite.
|
List<SatelliteTimeCoordinate> |
getSatelliteCoordinates(String satId)
Get the time coordinates for the given satellite.
|
int |
getSatelliteCount()
Get the number of satellites contained in this orbit file.
|
Collection<SatelliteInformation> |
getSatellites()
Returns a
Collection of SatelliteInformation objects for
all satellites contained in this orbit file. |
double |
getSecondsOfWeek()
Returns the seconds of the GPS week as contained in the SP3 file.
|
OrbitFile.TimeSystem |
getTimeSystem()
Returns the
OrbitFile.TimeSystem used to time-stamp position entries. |
SP3File.SP3FileType |
getType()
Returns the
SP3File.SP3FileType associated with this SP3 file. |
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 |
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 |
setOrbitType(SP3File.SP3OrbitType oType)
Set the
SP3File.SP3OrbitType for this SP3 file. |
void |
setSecondsOfWeek(double seconds)
Set the seconds of the GPS week for this SP3 file.
|
void |
setTimeSystem(OrbitFile.TimeSystem system)
Set the time system used in this SP3 file.
|
void |
setType(SP3File.SP3FileType fileType)
Set the file type for this SP3 file.
|
public SP3File.SP3FileType getType()
SP3File.SP3FileType
associated with this SP3 file.public void setType(SP3File.SP3FileType fileType)
fileType
- the file type to be setpublic OrbitFile.TimeSystem getTimeSystem()
OrbitFile.TimeSystem
used to time-stamp position entries.getTimeSystem
in interface OrbitFile
OrbitFile.TimeSystem
of the orbit filepublic void setTimeSystem(OrbitFile.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()
getEpochInterval
in interface OrbitFile
public void setEpochInterval(double interval)
interval
- the interval between orbit entriespublic int getNumberOfEpochs()
getNumberOfEpochs
in interface OrbitFile
public void setNumberOfEpochs(int epochCount)
epochCount
- the number of epochs to be setpublic String getCoordinateSystem()
getCoordinateSystem
in interface OrbitFile
public void setCoordinateSystem(String system)
system
- the coordinate system to be setpublic SP3File.SP3OrbitType getOrbitType()
SP3File.SP3OrbitType
for this SP3 file.public void setOrbitType(SP3File.SP3OrbitType oType)
SP3File.SP3OrbitType
for this SP3 file.oType
- the orbit type 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 Collection<SatelliteInformation> getSatellites()
Collection
of SatelliteInformation
objects for
all satellites contained in this orbit file.getSatellites
in interface OrbitFile
Collection
of SatelliteInformation
objectspublic int getSatelliteCount()
getSatelliteCount
in interface OrbitFile
public SatelliteInformation getSatellite(String satId)
getSatellite
in interface OrbitFile
satId
- the satellite idSatelliteInformation
object describing the satellite if
present, null
otherwisepublic SatelliteInformation getSatellite(int n)
n
- the index of the satelliteSatelliteInformation
object for the nth satellitepublic boolean containsSatellite(String satId)
containsSatellite
in interface OrbitFile
satId
- the satellite idtrue
if the satellite is contained in the file, false
otherwisepublic List<SatelliteTimeCoordinate> getSatelliteCoordinates(String satId)
getSatelliteCoordinates
in interface OrbitFile
satId
- the satellite idList
of SatelliteTimeCoordinate
entries for
this satellitepublic void addSatelliteCoordinate(String satId, SatelliteTimeCoordinate coord)
satId
- the satellite identifiercoord
- the P/V coordinate of the satelliteCopyright © 2023 CNES. All rights reserved.