L - type of the line parametersD - type of the solar activity data loaderpublic abstract class AbstractSolarActivityData<L extends AbstractSolarActivityDataLoader.LineParameters,D extends AbstractSolarActivityDataLoader<L>> extends Object implements DTM2000InputParameters, NRLMSISE00InputParameters
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractSolarActivityData.LocalSolarActivity
Container for weather parameters around current date.
|
protected class |
AbstractSolarActivityData.SolarActivityGenerator
Generator used in the weather data cache.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
N_NEIGHBORS
Size of the list.
|
| Modifier | Constructor and Description |
|---|---|
|
AbstractSolarActivityData(DataSource source,
D loader,
TimeScale utc,
int maxSlots,
double maxSpan,
double maxInterval,
double minimumStep)
Simple constructor.
|
protected |
AbstractSolarActivityData(String supportedNames,
D loader,
DataProvidersManager dataProvidersManager,
TimeScale utc,
int maxSlots,
double maxSpan,
double maxInterval,
double minimumStep) |
| Modifier and Type | Method and Description |
|---|---|
GenericTimeStampedCache<L> |
getCache()
Get underlying cache.
|
protected double |
getLinearInterpolation(AbsoluteDate date,
Function<L,Double> solarActivityToDoubleMapper)
Performs a linear interpolation between two values The weights are computed from the time delta between previous date,
current date, next date.
|
protected double |
getLinearInterpolation(AbstractSolarActivityData.LocalSolarActivity localSolarActivity,
Function<L,Double> solarActivityToDoubleMapper)
Performs a linear interpolation between two values The weights are computed from the time delta between previous date,
current date, next date.
|
AbsoluteDate |
getMaxDate()
Gets the available data range maximum date.
|
AbsoluteDate |
getMinDate()
Gets the available data range minimum date.
|
String |
getSupportedNames()
Get the supported names regular expression.
|
TimeScale |
getUTC()
Get the UTC timescale.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget24HoursKp, getInstantFlux, getMeanFlux, getThreeHourlyKPgetAp, getAverageFlux, getDailyFluxprotected static final int N_NEIGHBORS
protected AbstractSolarActivityData(String supportedNames, D loader, DataProvidersManager dataProvidersManager, TimeScale utc, int maxSlots, double maxSpan, double maxInterval, double minimumStep)
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 cachemaxSpan - maximum duration span in seconds of one slot in the time-stamped cachemaxInterval - time interval above which a new slot is created in the
time-stamped cacheminimumStep - overriding minimum step designed for non-homogeneous tabulated values. To be used for example when
caching monthly tabulated values. May be null.public AbstractSolarActivityData(DataSource source, D loader, TimeScale utc, int maxSlots, double maxSpan, double maxInterval, double minimumStep)
source - source for the dataloader - data loaderutc - UTC time scalemaxSlots - maximum number of independent cached time slots in the
time-stamped cachemaxSpan - maximum duration span in seconds of one slot in the time-stamped cachemaxInterval - time interval above which a new slot is created in the
time-stamped cacheminimumStep - overriding minimum step designed for non-homogeneous tabulated values. To be used for example when
caching monthly tabulated values. May be null.protected double getLinearInterpolation(AbsoluteDate date, Function<L,Double> solarActivityToDoubleMapper)
date - current datesolarActivityToDoubleMapper - mapping function taking solar activity as input and returning a doubleprotected double getLinearInterpolation(AbstractSolarActivityData.LocalSolarActivity localSolarActivity, Function<L,Double> solarActivityToDoubleMapper)
localSolarActivity - solar activity around current datesolarActivityToDoubleMapper - mapping function taking solar activity as input and returning a doublepublic GenericTimeStampedCache<L> getCache()
public String getSupportedNames()
public TimeScale getUTC()
public AbsoluteDate getMinDate()
getMinDate in interface DTM2000InputParametersgetMinDate in interface NRLMSISE00InputParameterspublic AbsoluteDate getMaxDate()
getMaxDate in interface DTM2000InputParametersgetMaxDate in interface NRLMSISE00InputParametersCopyright © 2002-2023 CS GROUP. All rights reserved.