Package org.orekit.files.sp3
Class SP3Header
- java.lang.Object
-
- org.orekit.files.sp3.SP3Header
-
public class SP3Header extends Object
Header for SP3 files.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Field Summary
Fields Modifier and Type Field Description static StringSP3_FRAME_CENTER_STRINGString representation of the center of ephemeris coordinate system.
-
Constructor Summary
Constructors Constructor Description SP3Header()Create a new SP3 header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComment(String comment)Add a comment.voidaddSatId(String satId)Add a satellite identifier.doublegetAccuracy(String satId)Get the formal accuracy.StringgetAgency()Returns the agency that prepared this SP3 file.doublegetClockBase()Get the base for clock/clock-rate accuracy.List<String>getComments()Get the comments.StringgetCoordinateSystem()Returns the coordinate system of the entries in this orbit file.List<DataUsed>getDataUsed()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).CartesianDerivativesFiltergetFilter()Get the derivatives filter.intgetGpsWeek()Returns the GPS week as contained in the SP3 file.intgetModifiedJulianDay()Returns the modified julian day for this SP3 file.intgetNumberOfEpochs()Returns the number of epochs contained in this orbit file.SP3OrbitTypegetOrbitType()Returns theSP3OrbitTypefor this SP3 file.StringgetOrbitTypeKey()Returns the orbit type key for this SP3 file.doublegetPosVelBase()Get the base for position/velocity accuracy.List<String>getSatIds()Get the satellite identifiers.doublegetSecondsOfWeek()Returns the seconds of the GPS week as contained in the SP3 file.TimeSystemgetTimeSystem()Returns theTimeSystemused to time-stamp position entries.SP3FileTypegetType()Returns theSP3FileTypeassociated with this SP3 file.chargetVersion()Get the file version.voidsetAccuracy(int index, double accuracy)Set the accuracy.voidsetAgency(String agencyStr)Set the agency string for this SP3 file.voidsetClockBase(double clockBase)Set the base for clock/clock-rate accuracy.voidsetCoordinateSystem(String system)Set the coordinate system used for the orbit entries.voidsetDataUsed(List<DataUsed> dataUsed)Set the data used indicator for this SP3 file.voidsetDayFraction(double fraction)Set the day fraction for this SP3 file.voidsetEpoch(AbsoluteDate time)Set the epoch of the SP3 file.voidsetEpochInterval(double interval)Set the epoch interval for this SP3 file.voidsetFilter(CartesianDerivativesFilter filter)Set the derivatives filter.voidsetGpsWeek(int week)Set the GPS week of the SP3 file.voidsetModifiedJulianDay(int day)Set the modified julian day for this SP3 file.voidsetNumberOfEpochs(int epochCount)Set the number of epochs as contained in the SP3 file.voidsetOrbitTypeKey(String oTypeKey)Set the orbit type key for this SP3 file.voidsetPosVelBase(double posVelBase)Set the base for position/velocity accuracy.voidsetSecondsOfWeek(double seconds)Set the seconds of the GPS week for this SP3 file.voidsetTimeSystem(TimeSystem system)Set the time system used in this SP3 file.voidsetType(SP3FileType fileType)Set the file type for this SP3 file.voidsetVersion(char version)Set the file version.
-
-
-
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
-
setVersion
public void setVersion(char version)
Set the file version.- Parameters:
version- file version
-
getVersion
public char getVersion()
Get the file version.- Returns:
- file version
-
setFilter
public void setFilter(CartesianDerivativesFilter filter)
Set the derivatives filter.- Parameters:
filter- that indicates which derivatives of position are available.
-
getFilter
public CartesianDerivativesFilter getFilter()
Get the derivatives filter.- Returns:
- filter with available derivatives
-
getType
public SP3FileType getType()
Returns theSP3FileTypeassociated with this SP3 file.- Returns:
- the file type for this SP3 file
-
setType
public void setType(SP3FileType fileType)
Set the file type for this SP3 file.- Parameters:
fileType- the file type to be set
-
getTimeSystem
public TimeSystem getTimeSystem()
Returns theTimeSystemused to time-stamp position entries.- Returns:
- the
TimeSystemof the orbit file
-
setTimeSystem
public void setTimeSystem(TimeSystem system)
Set the time system used in this SP3 file.- Parameters:
system- the time system to be set
-
getDataUsed
public List<DataUsed> getDataUsed()
Returns the data used indicator from the SP3 file.- Returns:
- the data used indicator
-
setDataUsed
public void setDataUsed(List<DataUsed> dataUsed)
Set the data used indicator for this SP3 file.- Parameters:
dataUsed- the data used indicator to be set
-
getEpoch
public AbsoluteDate getEpoch()
Returns the start epoch of the orbit file.- Returns:
- the start epoch
-
setEpoch
public void setEpoch(AbsoluteDate time)
Set the epoch of the SP3 file.- Parameters:
time- the epoch to be set
-
getGpsWeek
public int getGpsWeek()
Returns the GPS week as contained in the SP3 file.- Returns:
- the GPS week of the SP3 file
-
setGpsWeek
public void setGpsWeek(int week)
Set the GPS week of the SP3 file.- Parameters:
week- the GPS week to be set
-
getSecondsOfWeek
public double getSecondsOfWeek()
Returns the seconds of the GPS week as contained in the SP3 file.- Returns:
- the seconds of the GPS week
-
setSecondsOfWeek
public void setSecondsOfWeek(double seconds)
Set the seconds of the GPS week for this SP3 file.- Parameters:
seconds- the seconds to be set
-
getModifiedJulianDay
public int getModifiedJulianDay()
Returns the modified julian day for this SP3 file.- Returns:
- the modified julian day
-
setModifiedJulianDay
public void setModifiedJulianDay(int day)
Set the modified julian day for this SP3 file.- Parameters:
day- the modified julian day to be set
-
getDayFraction
public double getDayFraction()
Returns the day fraction for this SP3 file.- Returns:
- the day fraction
-
setDayFraction
public void setDayFraction(double fraction)
Set the day fraction for this SP3 file.- Parameters:
fraction- the day fraction to be set
-
getEpochInterval
public double getEpochInterval()
Returns the time interval between epochs (in seconds).- Returns:
- the time interval between epochs
-
setEpochInterval
public void setEpochInterval(double interval)
Set the epoch interval for this SP3 file.- Parameters:
interval- the interval between orbit entries
-
getNumberOfEpochs
public int getNumberOfEpochs()
Returns the number of epochs contained in this orbit file.- Returns:
- the number of epochs
-
setNumberOfEpochs
public void setNumberOfEpochs(int epochCount)
Set the number of epochs as contained in the SP3 file.- Parameters:
epochCount- the number of epochs to be set
-
getCoordinateSystem
public String getCoordinateSystem()
Returns the coordinate system of the entries in this orbit file.- Returns:
- the coordinate system
-
setCoordinateSystem
public void setCoordinateSystem(String system)
Set the coordinate system used for the orbit entries.- Parameters:
system- the coordinate system to be set
-
getOrbitType
public SP3OrbitType getOrbitType()
Returns theSP3OrbitTypefor 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
-
setOrbitTypeKey
public void setOrbitTypeKey(String oTypeKey)
Set the orbit type key for this SP3 file.- Parameters:
oTypeKey- the orbit type key to be set
-
getAgency
public String getAgency()
Returns the agency that prepared this SP3 file.- Returns:
- the agency
-
setAgency
public void setAgency(String agencyStr)
Set the agency string for this SP3 file.- Parameters:
agencyStr- the agency string to be set
-
setPosVelBase
public void setPosVelBase(double posVelBase)
Set the base for position/velocity accuracy.- Parameters:
posVelBase- base for position/velocity accuracy
-
getPosVelBase
public double getPosVelBase()
Get the base for position/velocity accuracy.- Returns:
- base for position/velocity accuracy
-
setClockBase
public void setClockBase(double clockBase)
Set the base for clock/clock-rate accuracy.- Parameters:
clockBase- base for clock/clock-rate accuracy
-
getClockBase
public double getClockBase()
Get the base for clock/clock-rate accuracy.- Returns:
- base for clock/clock-rate accuracy
-
addSatId
public void addSatId(String satId)
Add a satellite identifier.- Parameters:
satId- satellite identifier
-
getSatIds
public List<String> getSatIds()
Get the satellite identifiers.- Returns:
- satellites identifiers
-
setAccuracy
public void setAccuracy(int index, double accuracy)Set the accuracy.- Parameters:
index- satellite index ingetSatIds()accuracy- in m
-
getAccuracy
public double getAccuracy(String satId)
Get the formal accuracy.The accuracy is limited by the SP3 standard to be a power of 2 in mm. The value returned here is in meters.
- Parameters:
satId- satellite identifier- Returns:
- magnitude of one standard deviation, in m.
-
getComments
public List<String> getComments()
Get the comments.- Returns:
- an unmodifiable view of comments
-
addComment
public void addComment(String comment)
Add a comment.- Parameters:
comment- comment to add
-
-