|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.models.earth.GeoMagneticFieldFactory
public class GeoMagneticFieldFactory
Factory for different GeoMagneticField
models.
This is a utility class, so its constructor is private.
Nested Class Summary | |
---|---|
static class |
GeoMagneticFieldFactory.FieldModel
The currently supported geomagnetic field models. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type, GeoMagneticModelReader reader) throws OrekitException
type
- the field model typereader
- custom reader to add for the geomagnetic models
OrekitException
- when the input field model type does not existpublic static void addDefaultGeoMagneticModelReader(GeoMagneticFieldFactory.FieldModel type) throws OrekitException
type
- the field model type
OrekitException
- when the input field model type does not existpublic static void clearGeoMagneticModelReaders()
addGeoMagneticModelReader(FieldModel, GeoMagneticModelReader)
,
addDefaultGeoMagneticModelReader(FieldModel)
public static void clearModels()
public static GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, AbsoluteDate year) throws OrekitException
GeoMagneticField
for the given model type and year.
type
- the field model typeyear
- the year in AbsoluteDate format
GeoMagneticField
for the given year and model
OrekitException
- if the models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, double year) throws OrekitException
GeoMagneticField
for the given model type and year.
type
- the field model typeyear
- the decimal year
GeoMagneticField
for the given year and model
OrekitException
- if the models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
public static GeoMagneticField getIGRF(AbsoluteDate year) throws OrekitException
year
- the year in AbsoluteDate format
GeoMagneticField
for the given year
OrekitException
- if the IGRF models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getIGRF(double year) throws OrekitException
year
- the decimal year
GeoMagneticField
for the given year
OrekitException
- if the IGRF models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
public static GeoMagneticField getWMM(AbsoluteDate year) throws OrekitException
year
- the year in AbsoluteDate format
GeoMagneticField
for the given year
OrekitException
- if the WMM models could not be loadedGeoMagneticField.getDecimalYear(AbsoluteDate)
public static GeoMagneticField getWMM(double year) throws OrekitException
year
- the decimal year
GeoMagneticField
for the given year
OrekitException
- if the WMM models could not be loadedGeoMagneticField.getDecimalYear(int, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |