public class SinexLoader extends Object implements EopHistoryLoader
The loader can be used to load several data types contained in Sinex files. The current supported data are: station coordinates, site eccentricities, EOP, and Difference Code Bias (DCB). Several instances of Sinex loader must be created in order to parse different data types.
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,
TimeScales scales)
Loads SINEX from the given input stream using the specified auxiliary data.
|
SinexLoader(String supportedNames)
Simple constructor.
|
SinexLoader(String supportedNames,
DataProvidersManager dataProvidersManager,
TimeScales scales)
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.
|
AbsoluteDate |
getCreationDate()
Get the creation date of the parsed SINEX file.
|
DcbSatellite |
getDcbSatellite(String prn)
Get the DCB data for a given satellite identified by its PRN.
|
DcbStation |
getDcbStation(String siteCode)
Get the DCB data for a given station.
|
AbsoluteDate |
getFileEpochEndTime()
Get the file epoch end time.
|
AbsoluteDate |
getFileEpochStartTime()
Get the file epoch start time.
|
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, TimeScales)
public SinexLoader(String supportedNames, DataProvidersManager dataProvidersManager, TimeScales scales)
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.scales
- time scales@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, TimeScales)
public SinexLoader(DataSource source, TimeScales scales)
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 datascales
- time scalespublic void setITRFVersion(int year)
year
- Year of the ITRF Version used for parsing EOP.public ITRFVersion getITRFVersion()
public AbsoluteDate getCreationDate()
public AbsoluteDate getFileEpochStartTime()
public AbsoluteDate getFileEpochEndTime()
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 uppublic DcbStation getDcbStation(String siteCode)
siteCode
- site codepublic DcbSatellite getDcbSatellite(String prn)
prn
- the satellite PRN (e.g. "G01" for GPS 01)Copyright © 2002-2023 CS GROUP. All rights reserved.