public class SinexLoader extends Object implements EOPHistoryLoader
For now only few keys are supported: SITE/ID, SITE/ECCENTRICITY, SOLUTION/EPOCHS and SOLUTION/ESTIMATE. They represent the minimum set of parameters that are interesting to consider in a SINEX file.
The parsing of EOP parameters for multiple files in different SinexLoader object, fed into the default DataContext might pose a problem in case validity dates are overlapping. As Sinex daily solution files provide a single EOP entry, the Sinex loader will add points at the limits of data dates (startDate, endDate) of the Sinex file, which in case of overlap will lead to inconsistencies in the final EOPHistory object. Multiple files can be parsed using a single SinexLoader with a regex to overcome this issue.
Constructor and Description |
---|
SinexLoader(DataSource source)
Simple constructor.
|
SinexLoader(DataSource source,
TimeScale utc)
Loads SINEX from the given input stream using the specified auxiliary data.
|
SinexLoader(String supportedNames)
Simple constructor.
|
SinexLoader(String supportedNames,
DataProvidersManager dataProvidersManager,
TimeScale utc)
Construct a loader by specifying the source of SINEX auxiliary data files.
|
Modifier and Type | Method and Description |
---|---|
void |
fillHistory(IERSConventions.NutationCorrectionConverter converter,
SortedSet<EOPEntry> history)
Load celestial body.
|
ITRFVersion |
getITRFVersion()
Get the ITRF version used for the EOP entries processing.
|
Map<AbsoluteDate,SinexEopEntry> |
getParsedEop()
Get the parsed EOP data.
|
Station |
getStation(String siteCode)
Get the station corresponding to the given site code.
|
Map<String,Station> |
getStations()
Get the parsed station data.
|
void |
setITRFVersion(int year)
Set the ITRF version used in EOP entries processing.
|
@DefaultDataContext public SinexLoader(String supportedNames)
default data context
.supportedNames
- regular expression for supported files namesSinexLoader(String, DataProvidersManager, TimeScale)
public SinexLoader(String supportedNames, DataProvidersManager dataProvidersManager, TimeScale utc)
For EOP loading, a default ITRFVersion.ITRF_2014
is used. It is
possible to update the version using the setITRFVersion(int)
method.
supportedNames
- regular expression for supported files namesdataProvidersManager
- provides access to auxiliary data.utc
- UTC time scale@DefaultDataContext public SinexLoader(DataSource source)
default data context
.
For EOP loading, a default ITRFVersion.ITRF_2014
is used. It is
possible to update the version using the setITRFVersion(int)
method.
source
- source for the RINEX dataSinexLoader(String, DataProvidersManager, TimeScale)
public SinexLoader(DataSource source, TimeScale utc)
For EOP loading, a default ITRFVersion.ITRF_2014
is used. It is
possible to update the version using the setITRFVersion(int)
method.
source
- source for the RINEX datautc
- UTC time scalepublic void setITRFVersion(int year)
year
- Year of the ITRF Version used for parsing EOP.public ITRFVersion getITRFVersion()
public Map<String,Station> getStations()
public Map<AbsoluteDate,SinexEopEntry> getParsedEop()
public Station getStation(String siteCode)
siteCode
- site codepublic void fillHistory(IERSConventions.NutationCorrectionConverter converter, SortedSet<EOPEntry> history)
fillHistory
in interface EOPHistoryLoader
converter
- converter to use for nutation correctionshistory
- history to fill upCopyright © 2002-2022 CS GROUP. All rights reserved.