DataLoader
public class KlobucharIonoCoefficientsLoader extends Object implements DataLoader
They are obtained from University of Bern Astronomical Institute ftp. Find more on the files at the Astronomical Institute site.
The files are UNIX-style compressed (.Z) files. They have to be extracted to UTF-8 text files before being read by this loader.
After extraction, it is assumed they are named CGIMDDD0.YYN where DDD and YY substitute day of year and 2-digits year.
The format is always the same, with and example shown below. Only the last 2 lines contains the Klobuchar coefficients.
Example:
2 NAVIGATION DATA GPS RINEX VERSION / TYPE INXFIT V5.3 AIUB 06-JAN-17 09:12 PGM / RUN BY / DATE CODE'S KLOBUCHAR-STYLE IONOSPHERE MODEL FOR DAY 001, 2017 COMMENT Contact address: code(at)aiub.unibe.ch COMMENT Data archive: ftp.unibe.ch/aiub/CODE/ COMMENT www.aiub.unibe.ch/download/CODE/ COMMENT WARNING: USE DATA AT SOUTHERN POLAR REGION WITH CARE COMMENT 1.2821D-08 -9.6222D-09 -3.5982D-07 -6.0901D-07 ION ALPHA 1.0840D+05 -1.3197D+05 -2.6331D+05 4.0570D+05 ION BETA END OF HEADER
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_SUPPORTED_NAMES |
Default supported files name pattern.
|
Constructor | Description |
---|---|
KlobucharIonoCoefficientsLoader() |
Constructor with default supported names.
|
KlobucharIonoCoefficientsLoader(String supportedNames) |
Constructor with supported names given by user.
|
Modifier and Type | Method | Description |
---|---|---|
double[] |
getAlpha() |
Returns the alpha coefficients array.
|
double[] |
getBeta() |
Returns the beta coefficients array.
|
String |
getSupportedNames() |
Returns the supported names of the loader.
|
void |
loadData(InputStream input,
String name) |
Load Klobuchar-Style ionospheric coefficients read from some file.
|
void |
loadKlobucharIonosphericCoefficients() |
Load the data using supported names .
|
void |
loadKlobucharIonosphericCoefficients(DateComponents dateComponents) |
Load the data for a given day.
|
boolean |
stillAcceptsData() |
Check if the loader still accepts new data.
|
public static final String DEFAULT_SUPPORTED_NAMES
public KlobucharIonoCoefficientsLoader(String supportedNames)
supportedNames
- Supported namespublic KlobucharIonoCoefficientsLoader()
public double[] getAlpha()
public double[] getBeta()
public String getSupportedNames()
public void loadKlobucharIonosphericCoefficients() throws OrekitException
OrekitException
public void loadKlobucharIonosphericCoefficients(DateComponents dateComponents) throws OrekitException
dateComponents
- day given but its DateComponentsOrekitException
- if the coefficients could not be loadedpublic 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, OrekitException
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 parsedOrekitException
- if some data is missing
or if some loader specific error occursCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.