Class SinexLoader

  • All Implemented Interfaces:
    EopHistoryLoader

    public class SinexLoader
    extends Object
    implements EopHistoryLoader
    Loader for Solution INdependent EXchange (SINEX) files.

    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.

    Since:
    10.3
    Author:
    Bryan Cazabonne
    • Method Detail

      • setITRFVersion

        public void setITRFVersion​(int year)
        Set the ITRF version used in EOP entries processing.
        Parameters:
        year - Year of the ITRF Version used for parsing EOP.
        Since:
        11.2
      • getITRFVersion

        public ITRFVersion getITRFVersion()
        Get the ITRF version used for the EOP entries processing.
        Returns:
        the ITRF Version used for the EOP processing.
        Since:
        11.2
      • getCreationDate

        public AbsoluteDate getCreationDate()
        Get the creation date of the parsed SINEX file.
        Returns:
        SINEX file creation date as an AbsoluteDate
        Since:
        12.0
      • getFileEpochStartTime

        public AbsoluteDate getFileEpochStartTime()
        Get the file epoch start time.
        Returns:
        the file epoch start time
        Since:
        12.0
      • getFileEpochEndTime

        public AbsoluteDate getFileEpochEndTime()
        Get the file epoch end time.
        Returns:
        the file epoch end time
        Since:
        12.0
      • getStations

        public Map<String,​Station> getStations()
        Get the parsed station data.
        Returns:
        unmodifiable view of parsed station data
      • getParsedEop

        public Map<AbsoluteDate,​SinexEopEntry> getParsedEop()
        Get the parsed EOP data.
        Returns:
        unmodifiable view of parsed station data
        Since:
        11.2
      • getStation

        public Station getStation​(String siteCode)
        Get the station corresponding to the given site code.
        Parameters:
        siteCode - site code
        Returns:
        the corresponding station
      • getDcbStation

        public DcbStation getDcbStation​(String siteCode)
        Get the DCB data for a given station.
        Parameters:
        siteCode - site code
        Returns:
        DCB data for the station
        Since:
        12.0
      • getDcbSatellite

        public DcbSatellite getDcbSatellite​(String prn)
        Get the DCB data for a given satellite identified by its PRN.
        Parameters:
        prn - the satellite PRN (e.g. "G01" for GPS 01)
        Returns:
        the DCB data for the satellite
        Since:
        12.0