org.orekit.frames.configuration.eop
Class RapidDataAndPredictionColumnsLoader

java.lang.Object
  extended by org.orekit.frames.configuration.eop.RapidDataAndPredictionColumnsLoader
All Implemented Interfaces:
DataLoader, EOP1980HistoryLoader, EOP2000HistoryLoader

public class RapidDataAndPredictionColumnsLoader
extends Object
implements EOP1980HistoryLoader, EOP2000HistoryLoader

Loader for IERS rapid data and prediction files in columns format (finals file).

Rapid data and prediction files contain Earth Orientation Parameters for several years periods, in one file only that is updated regularly.

These files contain both the data from IERS Bulletin A and IERS bulletin B. This class parses only the part from Bulletin A.

The rapid data and prediction file is recognized thanks to its base name, which must match one of the the patterns finals.* or finals2000A.* (or the same ending with .gz for gzip-compressed files) 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, the file with the data suffix start from 1992-01-01 and the files with the daily suffix.

Author:
Romain Di Costanzo
See Also:
file format description at USNO

Constructor Summary
RapidDataAndPredictionColumnsLoader(String supportedNames)
          Build a loader for IERS bulletins B files.
 
Method Summary
 void fillHistory(EOP1980History history)
          Load celestial body.
 void fillHistory(EOP2000History history)
          Load celestial body.
 void loadData(InputStream input, String name)
          Load data from a stream.
 boolean stillAcceptsData()
          Check if the loader still accepts new data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RapidDataAndPredictionColumnsLoader

public RapidDataAndPredictionColumnsLoader(String supportedNames)
Build a loader for IERS bulletins B files.

Parameters:
supportedNames - regular expression for supported files names
Method Detail

stillAcceptsData

public boolean stillAcceptsData()
Check if the loader still accepts new data.

This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.

Specified by:
stillAcceptsData in interface DataLoader
Returns:
true while the loader still accepts new data

loadData

public void loadData(InputStream input,
                     String name)
              throws OrekitException,
                     IOException
Load data from a stream.

Specified by:
loadData in interface DataLoader
Parameters:
input - data input stream
name - name of the file (or zip entry)
Throws:
OrekitException - if some data is missing or if some loader specific error occurs
IOException - if data can't be read

fillHistory

public void fillHistory(EOP1980History history)
                 throws OrekitException
Load celestial body.

Specified by:
fillHistory in interface EOP1980HistoryLoader
Parameters:
history - history to fill up
Throws:
OrekitException - if the history cannot be loaded

fillHistory

public void fillHistory(EOP2000History history)
                 throws OrekitException
Load celestial body.

Specified by:
fillHistory in interface EOP2000HistoryLoader
Parameters:
history - history to fill up
Throws:
OrekitException - if the history cannot be loaded


Copyright © 2016 CNES. All Rights Reserved.