Class CssiSpaceWeatherDataLoader
- java.lang.Object
-
- org.orekit.models.earth.atmosphere.data.CssiSpaceWeatherDataLoader
-
- All Implemented Interfaces:
DataLoader
public class CssiSpaceWeatherDataLoader extends Object implements DataLoader
This class reads solar activity data from CSSI Space Weather files for the classCssiSpaceWeatherData
.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.
- Since:
- 10.2
- Author:
- Clément Jonglez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CssiSpaceWeatherDataLoader.LineParameters
Container class for Solar activity indexes.static class
CssiSpaceWeatherDataLoader.LineReader
Deprecated.as of 11.2, replaced byCommonLineReader
to remove duplicated code.
-
Constructor Summary
Constructors Constructor Description CssiSpaceWeatherDataLoader(TimeScale utc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
CssiSpaceWeatherDataLoader
public CssiSpaceWeatherDataLoader(TimeScale utc)
Constructor.- Parameters:
utc
- UTC time scale
-
-
Method Detail
-
getDataSet
public SortedSet<TimeStamped> getDataSet()
Getter for the data set.- Returns:
- the data set
-
getMinDate
public AbsoluteDate getMinDate()
Gets the available data range minimum date.- Returns:
- the minimum date.
-
getMaxDate
public AbsoluteDate getMaxDate()
Gets the available data range maximum date.- Returns:
- the maximum date.
-
getLastDailyPredictedDate
public AbsoluteDate getLastDailyPredictedDate()
Gets the day (at data start) of the last daily data entry.- Returns:
- the last daily predicted date
-
getLastObservedDate
public AbsoluteDate getLastObservedDate()
Gets the day (at data start) of the last observed data entry.- Returns:
- the last observed date
-
loadData
public void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
Load data from a stream.- Specified by:
loadData
in interfaceDataLoader
- Parameters:
input
- data input streamname
- name of the file (or zip entry)- Throws:
IOException
- if data can't be readParseException
- if data can't be parsed or if some loader specific error occursOrekitException
-
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:
stillAcceptsData
in interfaceDataLoader
- Returns:
- true while the loader still accepts new data
-
-