public class CssiSpaceWeatherData extends AbstractSolarActivityData<CssiSpaceWeatherDataLoader.LineParameters,CssiSpaceWeatherDataLoader>
DataLoader
implementation and the parsing is handled by the class
CssiSpaceWeatherDataLoader
.
The data are retrieved through space weather files offered by AGI/CSSI on the AGI FTP as well as on the CelesTrack website. These files are updated several times a day by using several sources mentioned in the Celestrak space weather data documentation.
AbstractSolarActivityData.LocalSolarActivity, AbstractSolarActivityData.SolarActivityGenerator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SUPPORTED_NAMES
Default regular expression for supported names that works with all officially published files.
|
N_NEIGHBORS
Constructor and Description |
---|
CssiSpaceWeatherData(DataSource source)
Simple constructor which use the
default data context . |
CssiSpaceWeatherData(DataSource source,
CssiSpaceWeatherDataLoader loader,
TimeScale utc)
Simple constructor.
|
CssiSpaceWeatherData(DataSource source,
CssiSpaceWeatherDataLoader loader,
TimeScale utc,
int maxSlots,
double maxSpan,
double maxInterval)
Simple constructor with customizable thread safe cache configuration.
|
CssiSpaceWeatherData(DataSource source,
TimeScale utc)
Simple constructor.
|
CssiSpaceWeatherData(String supportedNames)
Simple constructor.
|
CssiSpaceWeatherData(String supportedNames,
CssiSpaceWeatherDataLoader loader,
DataProvidersManager dataProvidersManager,
TimeScale utc)
Constructor that allows specifying the source of the CSSI space weather file.
|
CssiSpaceWeatherData(String supportedNames,
CssiSpaceWeatherDataLoader loader,
DataProvidersManager dataProvidersManager,
TimeScale utc,
int maxSlots,
double maxSpan,
double maxInterval)
Constructor that allows specifying the source of the CSSI space weather file and customizable thread safe cache
configuration.
|
CssiSpaceWeatherData(String supportedNames,
DataProvidersManager dataProvidersManager,
TimeScale utc)
Constructor that allows specifying the source of the CSSI space weather file.
|
Modifier and Type | Method and Description |
---|---|
double |
get24HoursKp(AbsoluteDate date)
Get the last 24H mean geomagnetic index.
|
double[] |
getAp(AbsoluteDate date)
Get the Ap geomagnetic indices.
|
double |
getAverageFlux(AbsoluteDate date)
Get the value of the 81 day average of F10.7 solar flux centered on current day.
|
double |
getDailyFlux(AbsoluteDate date)
Get the value of the daily F10.7 solar flux for previous day.
|
double |
getInstantFlux(AbsoluteDate date)
Get the value of the instantaneous solar flux.
|
double |
getMeanFlux(AbsoluteDate date)
Get the value of the mean solar flux.
|
double |
getThreeHourlyKP(AbsoluteDate date)
Get the value of the 3 hours geomagnetic index.
|
getCache, getLinearInterpolation, getLinearInterpolation, getMaxDate, getMinDate, getSupportedNames, getUTC
public static final String DEFAULT_SUPPORTED_NAMES
@DefaultDataContext public CssiSpaceWeatherData(String supportedNames)
The original file names provided by AGI/CSSI are of the form: SpaceWeather-All-v1.2.txt
(AGI's ftp). So a recommended regular
expression for the supported names that works with all published files is: DEFAULT_SUPPORTED_NAMES
.
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
supportedNames
- regular expression for supported AGI/CSSI space weather files namespublic CssiSpaceWeatherData(String supportedNames, DataProvidersManager dataProvidersManager, TimeScale utc)
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
supportedNames
- regular expression for supported AGI/CSSI space weather files namesdataProvidersManager
- provides access to auxiliary data files.utc
- UTC time scale.public CssiSpaceWeatherData(String supportedNames, CssiSpaceWeatherDataLoader loader, DataProvidersManager dataProvidersManager, TimeScale utc)
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
supportedNames
- regular expression for supported AGI/CSSI space weather files namesloader
- data loaderdataProvidersManager
- provides access to auxiliary data files.utc
- UTC time scalepublic CssiSpaceWeatherData(String supportedNames, CssiSpaceWeatherDataLoader loader, DataProvidersManager dataProvidersManager, TimeScale utc, int maxSlots, double maxSpan, double maxInterval)
supportedNames
- regular expression for supported AGI/CSSI space weather files namesloader
- data loaderdataProvidersManager
- provides access to auxiliary data files.utc
- UTC time scalemaxSlots
- maximum number of independent cached time slots in the
time-stamped cache
maxSpan
- maximum duration span in seconds of one slot in the time-stamped cache
maxInterval
- time interval above which a new slot is created in the
time-stamped cache
@DefaultDataContext public CssiSpaceWeatherData(DataSource source)
default data context
.
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
source
- source for the datapublic CssiSpaceWeatherData(DataSource source, TimeScale utc)
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
source
- source for the datautc
- UTC time scalepublic CssiSpaceWeatherData(DataSource source, CssiSpaceWeatherDataLoader loader, TimeScale utc)
It provides a default configuration for the thread safe cache :
OrekitConfiguration.getCacheSlotsNumber()
Constants.JULIAN_DAY
0
source
- source for the dataloader
- data loaderutc
- UTC time scalepublic CssiSpaceWeatherData(DataSource source, CssiSpaceWeatherDataLoader loader, TimeScale utc, int maxSlots, double maxSpan, double maxInterval)
source
- source for the dataloader
- data loaderutc
- UTC time scalemaxSlots
- maximum number of independent cached time slots in the
time-stamped cache
maxSpan
- maximum duration span in seconds of one slot in the time-stamped cache
maxInterval
- time interval above which a new slot is created in the
time-stamped cache
public double getInstantFlux(AbsoluteDate date)
date
- the current datepublic double getMeanFlux(AbsoluteDate date)
date
- the current datepublic double getThreeHourlyKP(AbsoluteDate date)
date
- the current datepublic double get24HoursKp(AbsoluteDate date)
date
- the current datepublic double getDailyFlux(AbsoluteDate date)
date
- the current datepublic double getAverageFlux(AbsoluteDate date)
date
- the current datepublic double[] getAp(AbsoluteDate date)
Ap indices are provided as an array such as:
date
- the current dateCopyright © 2002-2023 CS GROUP. All rights reserved.