Class RinexNavigationHeader
- java.lang.Object
-
- org.orekit.files.rinex.section.RinexBaseHeader
-
- org.orekit.files.rinex.navigation.RinexNavigationHeader
-
public class RinexNavigationHeader extends RinexBaseHeader
Header for Rinex Navigation.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Field Summary
Fields Modifier and Type Field Description static int
LABEL_INDEX
Index of label in header lines.
-
Constructor Summary
Constructors Constructor Description RinexNavigationHeader()
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIonosphericCorrection(IonosphericCorrection ionosphericCorrection)
Add a ionospheric correction.void
addTimeSystemCorrections(TimeSystemCorrection timeSystemCorrection)
Add a time system correction to the list.void
checkType(String line, String name)
Check file type.List<IonosphericCorrection>
getIonosphericCorrections()
Getter for the ionospheric corrections.int
getLabelIndex()
Get the index of the header label.int
getMergedFiles()
Getter for the number of merged files.List<TimeSystemCorrection>
getTimeSystemCorrections()
Getter for the time system corrections contained in the file header.boolean
matchFound(Label label, String line)
Check if a label is found in a line.void
parseProgramRunByDate(String line, TimeScales timeScales)
Parse program, run/by and date.SatelliteSystem
parseSatelliteSystem(String line, SatelliteSystem defaultSatelliteSystem)
Parse satellite system.void
setMergedFiles(int mergedFiles)
Setter for the number of merged files.-
Methods 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, setFormatVersion, setLeapSecondsDayNum, setLeapSecondsFuture, setLeapSecondsGNSS, setLeapSecondsWeekNum, setLicense, setProgramName, setReceiverNumber, setReceiverType, setReceiverVersion, setRunByName, setSatelliteSystem, setStationInformation
-
-
-
-
Field Detail
-
LABEL_INDEX
public static final int LABEL_INDEX
Index of label in header lines.- See Also:
- Constant Field Values
-
-
Method Detail
-
parseSatelliteSystem
public SatelliteSystem parseSatelliteSystem(String line, SatelliteSystem defaultSatelliteSystem)
Parse satellite system.- Specified by:
parseSatelliteSystem
in classRinexBaseHeader
- Parameters:
line
- header linedefaultSatelliteSystem
- satellite system to use if string is null or empty- Returns:
- parsed satellite system
-
parseProgramRunByDate
public void parseProgramRunByDate(String line, TimeScales timeScales)
Parse program, run/by and date.- Specified by:
parseProgramRunByDate
in classRinexBaseHeader
- Parameters:
line
- line to parsetimeScales
- the set of time scales used for parsing dates
-
getIonosphericCorrections
public List<IonosphericCorrection> getIonosphericCorrections()
Getter for the ionospheric corrections.- Returns:
- the ionospheric corrections
-
addIonosphericCorrection
public void addIonosphericCorrection(IonosphericCorrection ionosphericCorrection)
Add a ionospheric correction.- Parameters:
ionosphericCorrection
- the ionospheric correction type to add
-
getTimeSystemCorrections
public List<TimeSystemCorrection> getTimeSystemCorrections()
Getter for the time system corrections contained in the file header.Corrections to transform the system time to UTC or oter time system.
- Returns:
- the list of time system corrections
-
addTimeSystemCorrections
public void addTimeSystemCorrections(TimeSystemCorrection timeSystemCorrection)
Add a time system correction to the list.- Parameters:
timeSystemCorrection
- the element to add
-
getMergedFiles
public int getMergedFiles()
Getter for the number of merged files.- Returns:
- the number of merged files
-
setMergedFiles
public void setMergedFiles(int mergedFiles)
Setter for the number of merged files.- Parameters:
mergedFiles
- the number of merged files
-
checkType
public void checkType(String line, String name)
Check file type.- Specified by:
checkType
in classRinexBaseHeader
- Parameters:
line
- header linename
- file name (for error message)
-
getLabelIndex
public int getLabelIndex()
Get the index of the header label.- Specified by:
getLabelIndex
in classRinexBaseHeader
- Returns:
- index of the header label
-
matchFound
public boolean matchFound(Label label, String line)
Check if a label is found in a line.- Specified by:
matchFound
in classRinexBaseHeader
- Parameters:
label
- label to checkline
- header line- Returns:
- true if label is found in the header line
-
-