|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.forces.atmospheres.solarActivity.SolarActivityDataReader
public abstract class SolarActivityDataReader
Represents a basic solar activity file reader. This class puts in common the same methods used by solar activity file readers, and defines a common abstract class.
Field Summary | |
---|---|
protected boolean |
readCompleted
Indicator for completed read. |
Constructor Summary | |
---|---|
protected |
SolarActivityDataReader(String supportedNames,
TimeScale timescaleIn)
Constructor. |
Method Summary | |
---|---|
protected void |
addApKp(AbsoluteDate date,
Double[][] apkp)
Add a flux value |
protected void |
addF107(AbsoluteDate date,
double f107)
Add a flux value |
double |
getAp(AbsoluteDate date)
Get Ap value at given user date |
AbsoluteDate |
getApKpMaxDate()
Get maximum date of ap / kp values |
AbsoluteDate |
getApKpMinDate()
Get minimum date of ap / kp values |
SortedMap<AbsoluteDate,Double[]> |
getApKpValues(AbsoluteDate date1,
AbsoluteDate date2)
Get ap / kp values between the given dates |
AbsoluteDate |
getFluxMaxDate()
Get maximum date of flux values |
AbsoluteDate |
getFluxMinDate()
Get minimum date of flux values |
double |
getInstantFluxValue(AbsoluteDate date)
Get instant flux values at the given dates (possibly interpolated) |
SortedMap<AbsoluteDate,Double> |
getInstantFluxValues(AbsoluteDate date1,
AbsoluteDate date2)
Get raw instant flux values between the given dates |
double |
getKp(AbsoluteDate date)
Get Kp value at given user date |
AbsoluteDate |
getMaxDate()
Get maximum date at which both flux and ap values are available |
AbsoluteDate |
getMinDate()
Get minimum date at which both flux and ap values are available |
String |
getSupportedNames()
Get the regular expression for supported files names. |
protected boolean |
isEmpty()
Chech if data map is empty |
abstract void |
loadData(InputStream input,
String name)
Load data from a stream. |
boolean |
stillAcceptsData()
Check if the loader still accepts new data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean readCompleted
Constructor Detail |
---|
protected SolarActivityDataReader(String supportedNames, TimeScale timescaleIn)
Build an uninitialized reader.
supportedNames
- regular expression for supported files namestimescaleIn
- timescale used to compute time span between solar data. It should match time scale used in
solar data definitionMethod Detail |
---|
public SortedMap<AbsoluteDate,Double[]> getApKpValues(AbsoluteDate date1, AbsoluteDate date2)
getApKpValues
in interface SolarActivityDataProvider
date1
- first datedate2
- second date
public SortedMap<AbsoluteDate,Double> getInstantFluxValues(AbsoluteDate date1, AbsoluteDate date2)
getInstantFluxValues
in interface SolarActivityDataProvider
date1
- first datedate2
- second date
public double getInstantFluxValue(AbsoluteDate date)
getInstantFluxValue
in interface SolarActivityDataProvider
date
- user date
public double getAp(AbsoluteDate date)
getAp
in interface SolarActivityDataProvider
date
- user date
public double getKp(AbsoluteDate date)
getKp
in interface SolarActivityDataProvider
date
- user date
public AbsoluteDate getMinDate()
getMinDate
in interface SolarActivityDataProvider
public AbsoluteDate getMaxDate()
getMaxDate
in interface SolarActivityDataProvider
public AbsoluteDate getFluxMinDate()
getFluxMinDate
in interface SolarActivityDataProvider
public AbsoluteDate getFluxMaxDate()
getFluxMaxDate
in interface SolarActivityDataProvider
public AbsoluteDate getApKpMinDate()
getApKpMinDate
in interface SolarActivityDataProvider
public AbsoluteDate getApKpMaxDate()
getApKpMaxDate
in interface SolarActivityDataProvider
public boolean stillAcceptsData()
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.
stillAcceptsData
in interface DataLoader
public abstract void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
loadData
in interface DataLoader
input
- data input streamname
- name of the file (or zip entry)
IOException
- if data can't be read
ParseException
- if data can't be parsed
OrekitException
- if some data is missing
or if some loader specific error occurspublic String getSupportedNames()
protected void addF107(AbsoluteDate date, double f107)
date
- date of flux valuef107
- value of flux at dateprotected void addApKp(AbsoluteDate date, Double[][] apkp)
date
- date of flux valueapkp
- coefficients at date : double[2][8]protected boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |