Package org.orekit.models.earth
Class LazyLoadedGeoMagneticFields
- java.lang.Object
-
- org.orekit.models.earth.LazyLoadedGeoMagneticFields
-
- All Implemented Interfaces:
GeoMagneticFields
public class LazyLoadedGeoMagneticFields extends Object implements GeoMagneticFields
Loads magnetic fields on request and can be configured after creation. Designed to match the behavior ofGeoMagneticFieldFactoryin Orekit 10.0- Since:
- 10.1
- Author:
- Evan Ward, Thomas Neidhart
-
-
Constructor Summary
Constructors Constructor Description LazyLoadedGeoMagneticFields(DataProvidersManager dataProvidersManager)Create a factory for magnetic fields that uses the given data manager to load magnetic field files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoMagneticFieldgetField(GeoMagneticFieldFactory.FieldModel type, double year)Get theGeoMagneticFieldfor the given model type and year.GeoMagneticFieldgetIGRF(double year)Get the IGRF model for the given year.GeoMagneticFieldgetWMM(double year)Get the WMM model for the given year.
-
-
-
Constructor Detail
-
LazyLoadedGeoMagneticFields
public LazyLoadedGeoMagneticFields(DataProvidersManager dataProvidersManager)
Create a factory for magnetic fields that uses the given data manager to load magnetic field files.- Parameters:
dataProvidersManager- provides access to auxiliary data files.
-
-
Method Detail
-
getField
public GeoMagneticField getField(GeoMagneticFieldFactory.FieldModel type, double year)
Description copied from interface:GeoMagneticFieldsGet theGeoMagneticFieldfor the given model type and year.- Specified by:
getFieldin interfaceGeoMagneticFields- 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 GeoMagneticField getIGRF(double year)
Description copied from interface:GeoMagneticFieldsGet the IGRF model for the given year.- Specified by:
getIGRFin interfaceGeoMagneticFields- Parameters:
year- the decimal year- Returns:
- a
GeoMagneticFieldfor the given year - See Also:
GeoMagneticField.getDecimalYear(int, int, int)
-
getWMM
public GeoMagneticField getWMM(double year)
Description copied from interface:GeoMagneticFieldsGet the WMM model for the given year.- Specified by:
getWMMin interfaceGeoMagneticFields- Parameters:
year- the decimal year- Returns:
- a
GeoMagneticFieldfor the given year - See Also:
GeoMagneticField.getDecimalYear(int, int, int)
-
-