Class CssiSpaceWeatherDataLoader
- java.lang.Object
-
- org.orekit.models.earth.atmosphere.data.AbstractSolarActivityDataLoader<CssiSpaceWeatherDataLoader.LineParameters>
-
- org.orekit.models.earth.atmosphere.data.CssiSpaceWeatherDataLoader
-
- All Implemented Interfaces:
DataLoader
public class CssiSpaceWeatherDataLoader extends AbstractSolarActivityDataLoader<CssiSpaceWeatherDataLoader.LineParameters>
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.
-
Constructor Summary
Constructors Constructor Description CssiSpaceWeatherDataLoader(TimeScale utc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<CssiSpaceWeatherDataLoader.LineParameters>
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.void
loadData(InputStream input, String name)
Load data from a stream.-
Methods inherited from class org.orekit.models.earth.atmosphere.data.AbstractSolarActivityDataLoader
getMaxDate, getMinDate, getUTC, setMaxDate, setMinDate, stillAcceptsData
-
-
-
-
Constructor Detail
-
CssiSpaceWeatherDataLoader
public CssiSpaceWeatherDataLoader(TimeScale utc)
Constructor.- Parameters:
utc
- UTC time scale
-
-
Method Detail
-
loadData
public void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
Load data from a stream.- 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
-
getDataSet
public SortedSet<CssiSpaceWeatherDataLoader.LineParameters> getDataSet()
Getter for the data set.- Specified by:
getDataSet
in classAbstractSolarActivityDataLoader<CssiSpaceWeatherDataLoader.LineParameters>
- Returns:
- the data set
-
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
-
-