« Basic Principle » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 18 : | Ligne 18 : | ||
== How to initialize solar activity == | == How to initialize solar activity == | ||
Similarly, we can use another static method from the <font color=#4169E1>OperaSolarActivity</font> class. This method (<font color=#4169E1>getSolarActivityFromFile</font>) needs as input parameters: | |||
* the path for the file where actual activity is stored | |||
* the path for the file where predicted activity is stored | |||
* the CNES Julian date corresponding to the switch between actual and predicted activity | |||
<syntaxhighlight lang="java"> | |||
// Solar activity initialization | |||
final String realPath = "data/solar/ACSOL_REAL.act"; | |||
final String predPath = "data/solar/ACSOL_PREDICTED.act"; | |||
final double endOfHistoryCJD = 22605.0; | |||
final List<SolarActivityRow> solarActivity = OperaSolarActivity.getSolarActivityFromFile(realPath, predPath, endOfHistoryCJD); | |||
</syntaxhighlight> |
Version du 26 juin 2019 à 15:29
OPERA proposed a Java interface. To use this Java interface, the developer will have to:
- Create the OPERA ReentrySimulation object with ...
- a OperaConfigurationProperties object created from an existing file
- a List<SolarActivityRow> object including actual and predicted solar activities
- call for a given method of the ReentrySimulation object with a list of TLE as arguments
To obtain the results, some "getters" method will be available depending on the type of computation.
How to initialize a Opera Properties
Thanks to the static method getConfigurationProperties from OperaConfigurationProperties class, we have just to precise the file path:
// Opera properties configuration
final OperaConfigurationProperties conf = OperaConfigurationProperties.getConfigurationProperties("data/opera-configuration.properties");
How to initialize solar activity
Similarly, we can use another static method from the OperaSolarActivity class. This method (getSolarActivityFromFile) needs as input parameters:
- the path for the file where actual activity is stored
- the path for the file where predicted activity is stored
- the CNES Julian date corresponding to the switch between actual and predicted activity
// Solar activity initialization
final String realPath = "data/solar/ACSOL_REAL.act";
final String predPath = "data/solar/ACSOL_PREDICTED.act";
final double endOfHistoryCJD = 22605.0;
final List<SolarActivityRow> solarActivity = OperaSolarActivity.getSolarActivityFromFile(realPath, predPath, endOfHistoryCJD);