public class CssiSpaceWeatherDataLoader extends Object implements DataLoader
CssiSpaceWeatherData
.
The data are retrieved through space weather files offered by CSSI/AGI. The data can be retrieved on the AGI FTP. This file is updated several times a day by using several sources mentioned in the Celestrak space weather data documentation.
Modifier and Type | Class and Description |
---|---|
static class |
CssiSpaceWeatherDataLoader.LineParameters
Container class for Solar activity indexes.
|
static class |
CssiSpaceWeatherDataLoader.LineReader
Helper class to parse line data and to raise exceptions if needed.
|
Constructor and Description |
---|
CssiSpaceWeatherDataLoader(TimeScale utc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<TimeStamped> |
getDataSet()
Getter for the data set.
|
AbsoluteDate |
getLastDailyPredictedDate()
Gets the day (at data start) of the last daily data entry.
|
AbsoluteDate |
getLastObservedDate()
Gets the day (at data start) of the last observed data entry.
|
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 CssiSpaceWeatherDataLoader(TimeScale utc)
utc
- UTC time scalepublic SortedSet<TimeStamped> getDataSet()
public AbsoluteDate getMinDate()
public AbsoluteDate getMaxDate()
public AbsoluteDate getLastDailyPredictedDate()
public AbsoluteDate getLastObservedDate()
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-2022 CS GROUP. All rights reserved.