public final class GeoMagneticFieldFactory extends Object
GeoMagneticField
models.
This is a utility class, so its constructor is private.
Modifier and Type | Class and Description |
---|---|
static class |
GeoMagneticFieldFactory.FieldModel
The currently supported geomagnetic field models.
|
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type)
Add a default reader for geomagnetic models.
|
static void |
addGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type,
GeoMagneticModelReader reader)
Add a reader for geomagnetic models.
|
static void |
clearGeoMagneticModelReaders()
Clear geomagnetic models readers.
|
static void |
clearModels()
Method to reset igrf and wmm models to null.
|
static GeoMagneticField |
getField(GeoMagneticFieldFactory.FieldModel type,
AbsoluteDate year)
Get the
GeoMagneticField for the given model type and year. |
static GeoMagneticField |
getField(GeoMagneticFieldFactory.FieldModel type,
double year)
Get the
GeoMagneticField for the given model type and year. |
static GeoMagneticField |
getIGRF(AbsoluteDate year)
Get the IGRF model for the given year.
|
static GeoMagneticField |
getIGRF(double year)
Get the IGRF model for the given year.
|
static GeoMagneticField |
getWMM(AbsoluteDate year)
Get the WMM model for the given year.
|
static GeoMagneticField |
getWMM(double year)
Get the WMM model for the given year.
|
public static void addGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type, GeoMagneticModelReader reader) throws PatriusException
type
- the field model typereader
- custom reader to add for the geomagnetic modelsPatriusException
- when the input field model type does not existpublic static void addDefaultGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type) throws PatriusException
type
- the field model typePatriusException
- when the input field model type does not existpublic static void clearGeoMagneticModelReaders()
public static void clearModels()
public static GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, AbsoluteDate year) throws PatriusException
GeoMagneticField
for the given model type and year.type
- the field model typeyear
- the year in AbsoluteDate formatGeoMagneticField
for the given year and modelPatriusException
- if the models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, double year) throws PatriusException
GeoMagneticField
for the given model type and year.type
- the field model typeyear
- the decimal yearGeoMagneticField
for the given year and modelPatriusException
- if the models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
public static GeoMagneticField getIGRF(AbsoluteDate year) throws PatriusException
year
- the year in AbsoluteDate formatGeoMagneticField
for the given yearPatriusException
- if the IGRF models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getIGRF(double year) throws PatriusException
year
- the decimal yearGeoMagneticField
for the given yearPatriusException
- if the IGRF models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
public static GeoMagneticField getWMM(AbsoluteDate year) throws PatriusException
year
- the year in AbsoluteDate formatGeoMagneticField
for the given yearPatriusException
- if the WMM models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getWMM(double year) throws PatriusException
year
- the decimal yearGeoMagneticField
for the given yearPatriusException
- if the WMM models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
Copyright © 2021 CNES. All rights reserved.