Package org.orekit.models.earth
Class GeoMagneticFieldFactory
- java.lang.Object
-
- org.orekit.models.earth.GeoMagneticFieldFactory
-
public class GeoMagneticFieldFactory extends Object
Factory for differentGeoMagneticFieldmodels.This is a utility class, so its constructor is private.
- Author:
- Thomas Neidhart
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoMagneticFieldFactory.FieldModelThe currently supported geomagnetic field models.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeoMagneticFieldgetField(GeoMagneticFieldFactory.FieldModel type, double year)Get theGeoMagneticFieldfor the given model type and year.static GeoMagneticFieldgetIGRF(double year)Get the IGRF model for the given year.static GeoMagneticFieldgetWMM(double year)Get the WMM model for the given year.
-
-
-
Method Detail
-
getField
public static GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, double year)
Get theGeoMagneticFieldfor the given model type and year.- Parameters:
type- the field model typeyear- the decimal year- Returns:
- a
GeoMagneticFieldfor the given year and model - See Also:
GeoMagneticField.getDecimalYear(int, int, int)
-
getIGRF
public static GeoMagneticField getIGRF(double year)
Get the IGRF model for the given year.- Parameters:
year- the decimal year- Returns:
- a
GeoMagneticFieldfor the given year - See Also:
GeoMagneticField.getDecimalYear(int, int, int)
-
getWMM
public static GeoMagneticField getWMM(double year)
Get the WMM model for the given year.- Parameters:
year- the decimal year- Returns:
- a
GeoMagneticFieldfor the given year - See Also:
GeoMagneticField.getDecimalYear(int, int, int)
-
-