public class SOLFSMYDataLoader extends Object implements DataLoader
JB2008SpaceEnvironmentData
. The code in this class is based of the
CssiSpaceWeatherDataLoader.
The data is provided by Space Environment Technologies through their website Link.
The work done for this class is based on the CssiWpaceWeatherDataLoader class by Clément Jonglez, the JB2008 interface by Pascal Parraud, and corrections for DataLoader implementation by Bryan Cazabonne and Evan Ward .Modifier and Type | Class and Description |
---|---|
static class |
SOLFSMYDataLoader.LineParameters
Container class for Solar activity indexes.
|
Constructor and Description |
---|
SOLFSMYDataLoader(TimeScale utc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<SOLFSMYDataLoader.LineParameters> |
getDataSet()
Gets the data set.
|
AbsoluteDate |
getMaxDate()
Gets the available data range maximum date.
|
AbsoluteDate |
getMinDate()
Gets the available data range minimum date.
|
void |
loadData(InputStream input,
String name)
Load data from a stream.
|
boolean |
stillAcceptsData()
Check if the loader still accepts new data.
|
public SOLFSMYDataLoader(TimeScale utc)
utc
- UTC time scalepublic SortedSet<SOLFSMYDataLoader.LineParameters> getDataSet()
public AbsoluteDate getMinDate()
public AbsoluteDate getMaxDate()
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 parsed
or if some loader specific error occursOrekitException
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
Copyright © 2002-2023 CS GROUP. All rights reserved.