GXIGRF class¶
- class GXIGRF(handle=0)[source]¶
GXIGRF class.
International Geomagnetic Reference Field Methods to work with
GXIGRF
objects. TheGXIGRF
object contains data for theGXIGRF
model of the geomagnetic reference field.- calc(el, lon, lat, str_val, inc, dec)[source]¶
Calculate
GXIGRF
data for a givenGXIGRF
model.- Parameters:
New in version 5.0.
License: Geosoft End-User License
Note: Calculate
GXIGRF
data (total field, inclination, and declination) for a givenGXIGRF
model. The model used will be the same as that obtained withcreate
.
- calc_vv(gv_vel, gv_vlon, gv_vlat, gv_vfs, gv_vinc, gv_vdec)[source]¶
Calculate
GXIGRF
dataGXVV
’s for a givenGXIGRF
model.- Parameters:
New in version 5.0.
License: Geosoft End-User License
Note: Calculate
GXIGRF
data (total field, inclination, and declination) for a givenGXIGRF
model. The model used will be the same as that obtained withcreate
. All of theGXVV
’s should be the same length. The function will abort if they are not.No assumption is made on what data types are contained by any of the
GXVV
’s. However, all total field, inclination, and declination values are internally calculated as real data. These values will be converted to the types contained in the outputGXVV
’s.
- classmethod create(date, year, filename)[source]¶
Create an
GXIGRF
.- Parameters:
- Returns:
GXIGRF
Object- Return type:
New in version 5.0.
License: Geosoft End-User License
Note: If the year of the
GXIGRF
model is dummy, then theGXIGRF
year nearest to the line’s date will be used. Otherwise, the specified year is used.
- classmethod date_range(file_name, min, max)[source]¶
Determine the range of years covered by an
GXIGRF
or DGRF file- Parameters:
New in version 6.1.
License: Geosoft End-User License
Note: This is useful when using a DGRF file, because the system is set up only to calculate for years within the date range, and will return an error otherwise.