Package org.orekit.files.rinex.clock
Class RinexClockHeader
java.lang.Object
org.orekit.files.rinex.section.RinexBaseHeader
org.orekit.files.rinex.section.RinexClockObsBaseHeader
org.orekit.files.rinex.clock.RinexClockHeader
Header for Rinex Clock.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex of label in header lines before 3.04.static final intIndex of label in header lines for version 3.04 and later. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClockDataType(ClockDataType clockDataType) Add a clock data types.voidaddReceiver(Receiver receiver) Add a new receiver to the list of stored receivers.voidaddReferenceClockList(List<ReferenceClock> referenceClockList, AbsoluteDate startDate, AbsoluteDate endDate) Add a list of reference clocks which will be used after a specified date.voidaddSatellite(SatInSystem satId) Add a new satellite with a given identifier to the list of stored satellites.voidaddSystemObservationType(SatelliteSystem satSystem, ObservationType observationType) Add an observation type for a specified satellite system.voidCheck file type.Getter for the analysis center ID.Getter for the analysis center name.Getter for the different clock data types.Getter for the external clock reference.getFrame()Get the reference frame for the station positions.Getter for the frame name.intGet the index of the header label.intGet the Number of leap seconds separating UTC and TAI.intGet the number of different clock data types in the file.intGet the number of receivers that are considered in the file.intGet the number of satellites that are considered in the file.Getter for the receivers.Getter for the reference clocks.Getter for the satellites.Getter for the station identifier.Getter for the station name.Getter for the different observation type for each satellite system.Get the system time scale.Getter for the file time system.booleanmatchFound(Label label, String line) Check if a label is found in a line.intnumberOfObsTypes(SatelliteSystem system) Get the number of observation types for a given system.voidparseProgramRunByDate(String line, TimeScales timeScales) Parse program, run/by and date.parseSatelliteSystem(String line, SatelliteSystem defaultSatelliteSystem) Parse satellite system.voidsetAnalysisCenterID(String analysisCenterID) Setter for the analysis center ID.voidsetAnalysisCenterName(String analysisCenterName) Setter for the analysis center name.voidsetExternalClockReference(String externalClockReference) Setter for the external clock reference.voidsetFormatVersion(double formatVersion) Setter for the format version.voidSet the reference frame for the station positions.voidsetFrameName(String frameName) Setter for the frame name.voidsetLeapSecondsTAI(int leapSecondsTAI) Set the Number of leap seconds separating UTC and TAI.voidsetStationIdentifier(String stationIdentifier) Setter for the station identifier.voidsetStationName(String stationName) Setter for the station name.voidsetTimeScale(TimeScale timeScale) Set the system time scale.voidsetTimeSystem(TimeSystem timeSystem) Setter for the file time system.Methods inherited from class org.orekit.files.rinex.section.RinexClockObsBaseHeader
addAppliedDCBS, addAppliedPCVS, getListAppliedDCBS, getListAppliedPCVS, getTypeObs, setTypeObsMethods inherited from class org.orekit.files.rinex.section.RinexBaseHeader
checkType, getCreationDate, getCreationDateComponents, getCreationTimeZone, getDoi, getFileType, getFormatVersion, getLeapSecondsDayNum, getLeapSecondsFuture, getLeapSecondsGNSS, getLeapSecondsWeekNum, getLicense, getProgramName, getReceiverNumber, getReceiverType, getReceiverVersion, getRunByName, getSatelliteSystem, getStationInformation, parseProgramRunByDate, parseVersionFileTypeSatelliteSystem, setCreationDate, setCreationDateComponents, setCreationTimeZone, setDoi, setLeapSecondsDayNum, setLeapSecondsFuture, setLeapSecondsGNSS, setLeapSecondsWeekNum, setLicense, setProgramName, setReceiverNumber, setReceiverType, setReceiverVersion, setRunByName, setSatelliteSystem, setStationInformation
-
Field Details
-
LABEL_INDEX_300_302
public static final int LABEL_INDEX_300_302Index of label in header lines before 3.04.- See Also:
-
LABEL_INDEX_304_PLUS
public static final int LABEL_INDEX_304_PLUSIndex of label in header lines for version 3.04 and later.- See Also:
-
-
Constructor Details
-
RinexClockHeader
public RinexClockHeader()Simple constructor.
-
-
Method Details
-
setFormatVersion
public void setFormatVersion(double formatVersion) Setter for the format version.- Overrides:
setFormatVersionin classRinexBaseHeader- Parameters:
formatVersion- the format version to set
-
parseSatelliteSystem
Parse satellite system.- Specified by:
parseSatelliteSystemin classRinexBaseHeader- Parameters:
line- header linedefaultSatelliteSystem- satellite system to use if string is null or empty- Returns:
- parsed satellite system
-
parseProgramRunByDate
Parse program, run/by and date.- Specified by:
parseProgramRunByDatein classRinexBaseHeader- Parameters:
line- line to parsetimeScales- the set of time scales used for parsing dates
-
getTimeSystem
Getter for the file time system.- Returns:
- the file time system
-
setTimeSystem
Setter for the file time system.- Parameters:
timeSystem- the file time system to set
-
getTimeScale
Get the system time scale.- Returns:
- system time scale
-
setTimeScale
Set the system time scale.- Parameters:
timeScale- system time scale
-
getStationName
Getter for the station name.- Returns:
- the station name
-
setStationName
Setter for the station name.- Parameters:
stationName- the station name to set
-
getStationIdentifier
Getter for the station identifier.- Returns:
- the station identifier
-
setStationIdentifier
Setter for the station identifier.- Parameters:
stationIdentifier- the station identifier to set
-
getExternalClockReference
Getter for the external clock reference.- Returns:
- the external clock reference
-
setExternalClockReference
Setter for the external clock reference.- Parameters:
externalClockReference- the external clock reference to set
-
getAnalysisCenterID
Getter for the analysis center ID.- Returns:
- the analysis center ID
-
setAnalysisCenterID
Setter for the analysis center ID.- Parameters:
analysisCenterID- the analysis center ID to set
-
getAnalysisCenterName
Getter for the analysis center name.- Returns:
- the analysis center name
-
setAnalysisCenterName
Setter for the analysis center name.- Parameters:
analysisCenterName- the analysis center name to set
-
getReferenceClocks
Getter for the reference clocks.- Returns:
- the time span map of the different refence clocks
-
addReferenceClockList
public void addReferenceClockList(List<ReferenceClock> referenceClockList, AbsoluteDate startDate, AbsoluteDate endDate) Add a list of reference clocks which will be used after a specified date. If the reference map has not been already created, it will be.- Parameters:
referenceClockList- the reference clock liststartDate- start date of list validityendDate- end date of validity
-
getSystemObservationTypes
Getter for the different observation type for each satellite system.- Returns:
- the map of the different observation type per satellite system
-
addSystemObservationType
Add an observation type for a specified satellite system.- Parameters:
satSystem- the satellite system to add observation typeobservationType- the system observation type to set
-
numberOfObsTypes
Get the number of observation types for a given system.- Parameters:
system- the satellite system to consider- Returns:
- the number of observation types for a given system
-
getClockDataTypes
Getter for the different clock data types.- Returns:
- the list of the different clock data types
-
addClockDataType
Add a clock data types.- Parameters:
clockDataType- the clock data types to add
-
getNumberOfClockDataTypes
public int getNumberOfClockDataTypes()Get the number of different clock data types in the file.- Returns:
- the number of different clock data types
-
setLeapSecondsTAI
public void setLeapSecondsTAI(int leapSecondsTAI) Set the Number of leap seconds separating UTC and TAI.- Parameters:
leapSecondsTAI- Number of leap seconds separating UTC and TAI
-
getLeapSecondsTAI
public int getLeapSecondsTAI()Get the Number of leap seconds separating UTC and TAI.- Returns:
- Number of leap seconds separating UTC and TAI
-
getFrame
Get the reference frame for the station positions.- Returns:
- the reference frame for station positions
-
setFrame
Set the reference frame for the station positions.- Parameters:
frame- reference frame for station positions
-
getFrameName
Getter for the frame name.- Returns:
- the frame name
-
setFrameName
Setter for the frame name.- Parameters:
frameName- the frame name to set
-
addSatellite
Add a new satellite with a given identifier to the list of stored satellites.- Parameters:
satId- the satellite identifier
-
addReceiver
Add a new receiver to the list of stored receivers.- Parameters:
receiver- the receiver
-
getNumberOfReceivers
public int getNumberOfReceivers()Get the number of receivers that are considered in the file.- Returns:
- the number of receivers that are considered in the file
-
getNumberOfSatellites
public int getNumberOfSatellites()Get the number of satellites that are considered in the file.- Returns:
- the number of satellites that are considered in the file
-
getReceivers
Getter for the receivers.- Returns:
- the list of the receivers
-
getSatellites
Getter for the satellites.- Returns:
- the list of the satellites
-
checkType
Check file type.- Specified by:
checkTypein classRinexBaseHeader- Parameters:
line- header linename- file name (for error message)
-
getLabelIndex
public int getLabelIndex()Get the index of the header label.- Specified by:
getLabelIndexin classRinexBaseHeader- Returns:
- index of the header label
-
matchFound
Check if a label is found in a line.- Specified by:
matchFoundin classRinexBaseHeader- Parameters:
label- label to checkline- header line- Returns:
- true if label is found in the header line
-