Package org.orekit.files.sp3
Class SP3Header
java.lang.Object
org.orekit.files.sp3.SP3Header
Header for SP3 files.
- Since:
- 12.0
- Author:
- Luc Maisonobe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringString representation of the center of ephemeris coordinate system. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String comment) Add a comment.voidAdd a satellite identifier.doublegetAccuracy(String satId) Get the formal accuracy.Returns the agency that prepared this SP3 file.doubleGet the base for clock/clock-rate accuracy.Get the comments.Returns the coordinate system of the entries in this orbit file.Returns the data used indicator from the SP3 file.doubleReturns the day fraction for this SP3 file.getEpoch()Returns the start epoch of the orbit file.doubleReturns the time interval between epochs (in seconds).Get the derivatives filter.intReturns the GPS week as contained in the SP3 file.intReturns the modified julian day for this SP3 file.intReturns the number of epochs contained in this orbit file.Returns theSP3OrbitTypefor this SP3 file.Returns the orbit type key for this SP3 file.doubleGet the base for position/velocity accuracy.Get the satellite identifiers.doubleReturns the seconds of the GPS week as contained in the SP3 file.Returns theTimeSystemused to time-stamp position entries.getType()Returns theSP3FileTypeassociated with this SP3 file.charGet the file version.voidsetAccuracy(int index, double accuracy) Set the accuracy.voidSet 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 Details
-
SP3_FRAME_CENTER_STRING
String representation of the center of ephemeris coordinate system.- See Also:
-
-
Constructor Details
-
SP3Header
public SP3Header()Create a new SP3 header.
-
-
Method Details
-
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
Set the derivatives filter.- Parameters:
filter- that indicates which derivatives of position are available.
-
getFilter
Get the derivatives filter.- Returns:
- filter with available derivatives
-
getType
Returns theSP3FileTypeassociated with this SP3 file.- Returns:
- the file type for this SP3 file
-
setType
Set the file type for this SP3 file.- Parameters:
fileType- the file type to be set
-
getTimeSystem
Returns theTimeSystemused to time-stamp position entries.- Returns:
- the
TimeSystemof the orbit file
-
setTimeSystem
Set the time system used in this SP3 file.- Parameters:
system- the time system to be set
-
getDataUsed
Returns the data used indicator from the SP3 file.- Returns:
- the data used indicator
-
setDataUsed
Set the data used indicator for this SP3 file.- Parameters:
dataUsed- the data used indicator to be set
-
getEpoch
Returns the start epoch of the orbit file.- Returns:
- the start epoch
-
setEpoch
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
Returns the coordinate system of the entries in this orbit file.- Returns:
- the coordinate system
-
setCoordinateSystem
Set the coordinate system used for the orbit entries.- Parameters:
system- the coordinate system to be set
-
getOrbitType
Returns theSP3OrbitTypefor this SP3 file.- Returns:
- the orbit type
-
getOrbitTypeKey
Returns the orbit type key for this SP3 file.- Returns:
- the orbit type key
-
setOrbitTypeKey
Set the orbit type key for this SP3 file.- Parameters:
oTypeKey- the orbit type key to be set
-
getAgency
Returns the agency that prepared this SP3 file.- Returns:
- the agency
-
setAgency
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
Add a satellite identifier.- Parameters:
satId- satellite identifier
-
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
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
Get the comments.- Returns:
- an unmodifiable view of comments
-
addComment
Add a comment.- Parameters:
comment- comment to add
-