Class DtcDataLoader
- java.lang.Object
-
- org.orekit.models.earth.atmosphere.data.DtcDataLoader
-
- All Implemented Interfaces:
DataLoader
public class DtcDataLoader extends Object implements DataLoader
This class reads solar activity data from DTCFILE files for the classJB2008SpaceEnvironmentData
. The code in this class is based of the CssiSpaceWeatherDataLoader class. The DTCFILE file contain pre-computed data from Space Environment using the Dst indices as well as Ap indices. This computation can be realised using the Fortran code provided by Space Environment Technologies. See this link for more information.The data is provided by Space Environment Technologies through their website Link.
The work done for this class is based on the CssiSpaceWeatherDataLoader class by Clément Jonglez, the JB2008 interface by Pascal Parraud, and corrections for DataLoader implementation by Bryan Cazabonne and Evan Ward .- Since:
- 11.2
- Author:
- Louis Aucouturier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DtcDataLoader.LineParameters
Container class for Solar activity indexes.
-
Constructor Summary
Constructors Constructor Description DtcDataLoader(TimeScale utc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<DtcDataLoader.LineParameters>
getDataSet()
Getter for 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.
-
-
-
Constructor Detail
-
DtcDataLoader
public DtcDataLoader(TimeScale utc)
Constructor.- Parameters:
utc
- UTC time scale
-
-
Method Detail
-
getDataSet
public SortedSet<DtcDataLoader.LineParameters> 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.
-
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
-
-