Class AstronomicalAmplitudeReader
java.lang.Object
org.orekit.forces.gravity.potential.AstronomicalAmplitudeReader
- All Implemented Interfaces:
DataLoader
Parser for tides astronomical amplitude Hf.
- Since:
- 6.1
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionAstronomicalAmplitudeReader(String supportedNames, int columns, int columnDoodson, int columnHf, double scale) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet astronomical amplitudes map.Get the regular expression for supported files names.voidloadData(InputStream input, String name) Load data from a stream.booleanCheck if the loader still accepts new data.
-
Constructor Details
-
AstronomicalAmplitudeReader
public AstronomicalAmplitudeReader(String supportedNames, int columns, int columnDoodson, int columnHf, double scale) Simple constructor.- Parameters:
supportedNames- regular expression for supported files namescolumns- number of columnscolumnDoodson- Doodson number column (counting from 1)columnHf- Hf column (counting from 1)scale- scaling factor for astronomical amplitude
-
-
Method Details
-
getSupportedNames
Get the regular expression for supported files names.- Returns:
- regular expression for supported files names
-
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:
stillAcceptsDatain interfaceDataLoader- Returns:
- true while the loader still accepts new data
-
loadData
Load data from a stream.- Specified by:
loadDatain interfaceDataLoader- Parameters:
input- data input streamname- name of the file (or zip entry)- Throws:
IOException- if data can't be read
-
getAstronomicalAmplitudesMap
Get astronomical amplitudes map.- Returns:
- an unmodifiable map containing astronomical amplitudes Hf from a Doodson number key
-