org.orekit.forces.atmospheres.solarActivity
Class ExtendedSolarActivityWrapper

java.lang.Object
  extended by org.orekit.forces.atmospheres.solarActivity.ExtendedSolarActivityWrapper
All Implemented Interfaces:
SolarActivityDataProvider

public class ExtendedSolarActivityWrapper
extends Object
implements SolarActivityDataProvider

This class is a solar activity data provider fed with:

It is built with the following convention:

Since:
3.2
Version:
$Id: ExtendedSolarActivityWrapper.java 16410 2016-08-04 11:58:50Z bignon $
Author:
Emmanuel Bignon
Concurrency :
not thread-safe

Constructor Summary
ExtendedSolarActivityWrapper(SolarActivityDataProvider innerProvider, double duration)
          Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedSolarActivityWrapper

public ExtendedSolarActivityWrapper(SolarActivityDataProvider innerProvider,
                                    double duration)
Constructor.

Parameters:
innerProvider - underlying solar activity provider
duration - mean duration (s) for extension computation. If this duration is larger than available data timespan, d will be equal to timespan length
Method Detail

getFluxMinDate

public AbsoluteDate getFluxMinDate()
Get minimum date of flux values

Specified by:
getFluxMinDate in interface SolarActivityDataProvider
Returns:
a date

getFluxMaxDate

public AbsoluteDate getFluxMaxDate()
Get maximum date of flux values

Specified by:
getFluxMaxDate in interface SolarActivityDataProvider
Returns:
a date

getMinDate

public AbsoluteDate getMinDate()
Get minimum date at which both flux and ap values are available

Specified by:
getMinDate in interface SolarActivityDataProvider
Returns:
a date

getMaxDate

public AbsoluteDate getMaxDate()
Get maximum date at which both flux and ap values are available

Specified by:
getMaxDate in interface SolarActivityDataProvider
Returns:
a date

getApKpMinDate

public AbsoluteDate getApKpMinDate()
Get minimum date of ap / kp values

Specified by:
getApKpMinDate in interface SolarActivityDataProvider
Returns:
a date

getApKpMaxDate

public AbsoluteDate getApKpMaxDate()
Get maximum date of ap / kp values

Specified by:
getApKpMaxDate in interface SolarActivityDataProvider
Returns:
a date

getInstantFluxValue

public double getInstantFluxValue(AbsoluteDate date)
                           throws OrekitException
Get instant flux values at the given dates (possibly interpolated)

Specified by:
getInstantFluxValue in interface SolarActivityDataProvider
Parameters:
date - user date
Returns:
instant flux values
Throws:
OrekitException - if no solar activity at date

getAp

public double getAp(AbsoluteDate date)
             throws OrekitException
Get Ap value at given user date

Specified by:
getAp in interface SolarActivityDataProvider
Parameters:
date - user date
Returns:
Ap value
Throws:
OrekitException

getKp

public double getKp(AbsoluteDate date)
             throws OrekitException
Get Kp value at given user date

Specified by:
getKp in interface SolarActivityDataProvider
Parameters:
date - user date
Returns:
Kp value
Throws:
OrekitException

getInstantFluxValues

public SortedMap<AbsoluteDate,Double> getInstantFluxValues(AbsoluteDate date1,
                                                           AbsoluteDate date2)
                                                    throws OrekitException
Get raw instant flux values between the given dates

Specified by:
getInstantFluxValues in interface SolarActivityDataProvider
Parameters:
date1 - first date
date2 - second date
Returns:
submap of instant flux values sorted according to date
Throws:
OrekitException - if no solar activity at date

getApKpValues

public SortedMap<AbsoluteDate,Double[]> getApKpValues(AbsoluteDate date1,
                                                      AbsoluteDate date2)
                                               throws OrekitException
Get ap / kp values between the given dates

Specified by:
getApKpValues in interface SolarActivityDataProvider
Parameters:
date1 - first date
date2 - second date
Returns:
submap of instant flux values sorted according to date
Throws:
OrekitException - if no solar activity at date


Copyright © 2016 CNES. All Rights Reserved.