public final class SolarActivityToolbox extends Object
Modifier and Type | Method and Description |
---|---|
static double |
apToKp(double ap)
Convert a single ap coefficient to a kp coefficient
|
static double[] |
apToKp(double[] ap)
Convert an array
|
static void |
checkApSanity(double ap)
Check that the specified ap coefficient is within bounds
|
static void |
checkKpSanity(double kp)
Check that the specified kp coefficient is within bounds
|
static double |
getAverageFlux(AbsoluteDate date1,
AbsoluteDate date2,
SolarActivityDataProvider data)
Compute mean flux between given dates.
|
static double |
getMeanAp(AbsoluteDate minDate,
AbsoluteDate maxDate,
SolarActivityDataProvider data)
Compute mean flux between given dates (rectangular rule)
|
static double |
getMeanFlux(AbsoluteDate date1,
AbsoluteDate date2,
SolarActivityDataProvider data)
Compute mean flux between given dates using trapezoidal rule
|
static double |
kpToAp(double kp)
Convert a single kp coefficient to a ap coefficient
|
static double[] |
kpToAp(double[] kp)
Convert an array
|
public static double apToKp(double ap)
ap
- coefficient to convertpublic static double kpToAp(double kp)
kp
- coefficient to convertpublic static double[] apToKp(double[] ap)
ap
- array to convertpublic static double[] kpToAp(double[] kp)
kp
- array to convertpublic static double getMeanAp(AbsoluteDate minDate, AbsoluteDate maxDate, SolarActivityDataProvider data) throws PatriusException
minDate
- first date for mean flux computationmaxDate
- last date for mean flux computationdata
- solar dataPatriusException
- if not enough data to cover timespan or if date2 is set before date1public static double getMeanFlux(AbsoluteDate date1, AbsoluteDate date2, SolarActivityDataProvider data) throws PatriusException
date1
- first date for mean flux computationdate2
- last date for mean flux computationdata
- solar dataPatriusException
- if not enough data to cover timespan or if date2 is set before date1public static double getAverageFlux(AbsoluteDate date1, AbsoluteDate date2, SolarActivityDataProvider data) throws PatriusException
date1
- first date for mean flux computationdate2
- last date for mean flux computationdata
- solar dataPatriusException
- if not enough data to cover timespan or if date2 is set before date1public static void checkApSanity(double ap)
ap
- ap coefficientpublic static void checkKpSanity(double kp)
kp
- kp coefficientCopyright © 2020 CNES. All rights reserved.