GXIGRF class¶
- class GXIGRF(handle=0)[source]¶
GXIGRF class.
International Geomagnetic Reference Field Methods to work with
GXIGRFobjects. TheGXIGRFobject contains data for theGXIGRFmodel of the geomagnetic reference field.- calc(el, lon, lat, str_val, inc, dec)[source]¶
Calculate
GXIGRFdata for a givenGXIGRFmodel.- Parameters:
New in version 5.0.
License: Geosoft End-User License
Note: Calculate
GXIGRFdata (total field, inclination, and declination) for a givenGXIGRFmodel. 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
GXIGRFdataGXVV’s for a givenGXIGRFmodel.- Parameters:
New in version 5.0.
License: Geosoft End-User License
Note: Calculate
GXIGRFdata (total field, inclination, and declination) for a givenGXIGRFmodel. 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:
GXIGRFObject- Return type:
New in version 5.0.
License: Geosoft End-User License
Note: If the year of the
GXIGRFmodel is dummy, then theGXIGRFyear 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
GXIGRFor 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.