public final class USKLoader extends Object implements USKProvider, DataLoader
Constructor and Description |
---|
USKLoader(String fileName)
Creates a USK data file reader and load the file.
|
Modifier and Type | Method and Description |
---|---|
fr.cnes.sirius.patrius.signalpropagation.iono.USKData |
getData(AbsoluteDate date,
double r12)
Returns the USK data for the Bent model.
|
void |
loadData(InputStream input,
String name)
Load data from a stream.
|
boolean |
stillAcceptsData()
Check if the loader still accepts new data.
|
public USKLoader(String fileName) throws PatriusException
fileName
- name of the filePatriusException
- if a problem occurs during the file loading.public boolean stillAcceptsData()
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.
stillAcceptsData
in interface DataLoader
public void loadData(InputStream input, String name) throws IOException, ParseException, PatriusException
loadData
in interface DataLoader
input
- data input streamname
- name of the file (or zip entry)IOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing
or if some loader specific error occurspublic fr.cnes.sirius.patrius.signalpropagation.iono.USKData getData(AbsoluteDate date, double r12) throws PatriusException
getData
in interface USKProvider
date
- the dater12
- R12 constant valuePatriusException
- if a problem occurs in time scales managementCopyright © 2019 CNES. All rights reserved.