Package org.orekit.files.rinex.clock
Class RinexClockParser
java.lang.Object
org.orekit.files.rinex.clock.RinexClockParser
A parser for the clock file from the IGS.
This parser handles versions 2.0 to 3.04 of the RINEX clock files.
It is able to manage some mistakes in file writing and format compliance such as wrong date format, misplaced header blocks or missing information.
A time system should be specified in the file. However, if it is not, default time system will be chosen regarding the satellite system. If it is mixed or not specified, default time system will be UTC.
Caution, files with missing information in header can lead to wrong data dates and station positions. It is advised to check the correctness and format compliance of the clock file to be parsed.
- Since:
- 11.0
- Author:
- Thomas Paulet
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a clock file parser using default values.RinexClockParser(Function<? super String, ? extends Frame> frameBuilder, Function<? super String, ? extends ObservationType> typeBuilder, Function<? super String, ? extends TimeSystem> timeSystemBuilder, TimeScales timeScales) Constructor, build the IGS clock file parser. -
Method Summary
Modifier and TypeMethodDescriptionparse(DataSource source) Parse an IGS clock file from aDataSource.
-
Constructor Details
-
RinexClockParser
Create a clock file parser using default values.This constructor uses the
default data contextandIGSUtils.guessFrame(String), it recognizes onlyPredefinedObservationTypeandPredefinedTimeSystem.- See Also:
-
RinexClockParser
public RinexClockParser(Function<? super String, ? extends Frame> frameBuilder, Function<? super String, ? extends ObservationType> typeBuilder, Function<? super String, ? extends TimeSystem> timeSystemBuilder, TimeScales timeScales) Constructor, build the IGS clock file parser.- Parameters:
frameBuilder- is a function that can construct a frame from a clock file coordinate system string. The coordinate system can be any 5 characters string e.g., ITR92, IGb08.typeBuilder- mapper from string to the observation typetimeSystemBuilder- mapper from string to time system (useful for user-defined time systems)timeScales- the set of time scales used for parsing dates.- Since:
- 14.0
-
-
Method Details
-
parse
Parse an IGS clock file from aDataSource.- Parameters:
source- source for clock file- Returns:
- a parsed IGS clock file
- Since:
- 12.1
-