Interface EopHistoryLoader.Parser

Enclosing interface:
EopHistoryLoader

public static interface EopHistoryLoader.Parser
Interface for parsing EOP data files.
Since:
10.1
Author:
Evan Ward
  • Method Details

    • parse

      Collection<EOPEntry> parse(InputStream input, String name) throws IOException
      Parse EOP from the given input stream.
      Parameters:
      input - stream to parse.
      name - of the stream for error messages.
      Returns:
      parsed EOP entries.
      Throws:
      IOException - if input throws one during parsing.
    • newFinalsXmlParser

      static EopHistoryLoader.Parser newFinalsXmlParser(IERSConventions conventions, ItrfVersionProvider itrfVersionProvider, TimeScales timeScales)
      Create a new parser for EOP data in the rapid and predicted XML format.

      The XML EOP files are recognized thanks to their base names, which match one of the the patterns finals.2000A.*.xml or finals.*.xml where * stands for a word like "all", "daily", or "data".

      Parameters:
      conventions - used to convert between equinox-based and non-rotating-origin-based paradigms.
      itrfVersionProvider - used to determine the ITRF version of parsed EOP.
      timeScales - used to parse the EOP data.
      Returns:
      a new parser.
    • newFinalsColumnsParser

      static EopHistoryLoader.Parser newFinalsColumnsParser(IERSConventions conventions, ItrfVersionProvider itrfVersionProvider, TimeScales timeScales, boolean isNonRotatingOrigin)
      Create a new parser for EOP data in the rapid and predicted columnar format.

      The rapid data and prediction file is recognized thanks to its base name, which match one of the the patterns finals.* or finals2000A.* where * stands for a word like "all", "daily", or "data". The file with 2000A in their name correspond to the IAU-2000 precession-nutation model whereas the files without any identifier correspond to the IAU-1980 precession-nutation model. The files with the all suffix start from 1973-01-01, and the files with the data suffix start from 1992-01-01.

      Parameters:
      conventions - used to convert between equinox-based and non-rotating-origin-based paradigms.
      itrfVersionProvider - used to determine the ITRF version of parsed EOP.
      timeScales - used to parse the EOP data.
      isNonRotatingOrigin - if true the supported files must contain δX/δY nutation corrections, otherwise they must contain δΔψ/δΔε nutation corrections
      Returns:
      a new parser.
    • newEopC04Parser

      static EopHistoryLoader.Parser newEopC04Parser(IERSConventions conventions, ItrfVersionProvider itrfVersionProvider, TimeScales timeScales)
      Create a new parser for EOP data in the EOP C04 format.

      The EOP xx C04 files are recognized thanks to their base names, which match one of the patterns eopc04_##_IAU2000.## or eopc04_##.## where # stands for a digit character.

      Parameters:
      conventions - used to convert between equinox-based and non-rotating-origin-based paradigms.
      itrfVersionProvider - used to determine the ITRF version of parsed EOP.
      timeScales - used to parse the EOP data.
      Returns:
      a new parser.
    • newBulletinBParser

      static EopHistoryLoader.Parser newBulletinBParser(IERSConventions conventions, ItrfVersionProvider itrfVersionProvider, TimeScales timeScales)
      Create a new parser for EOP data in the Bulletin B format.
      Parameters:
      conventions - used to convert between equinox-based and non-rotating-origin-based paradigms.
      itrfVersionProvider - used to determine the ITRF version of parsed EOP.
      timeScales - used to parse the EOP data.
      Returns:
      a new parser.