Skip to main content

# pyIGRF ## What is pyIGRF? This is a package of IGRF-14 (International Geomagnetic Reference Field) about python version. We can calculate magnetic field intensity and transform coordinate between GeoGraphical and GeoMagnetic. It don’t need any Fortran compiler or NumPy package.

## How to Install? Download this package and run install. >```python setup.py install```

## How to Use it? First import this package. > `import pyIGRF`

You can calculate magnetic field intensity. >```pyIGRF.igrf_value(lat, lon, alt, date)```

or calculate the annual variation of magnetic filed intensity. >```pyIGRF.igrf_variation(lat, lon, alt, date)```

the response is 7 float number about magnetic filed which is: - D: declination (+ve east) - I: inclination (+ve down) - H: horizontal intensity - X: north component - Y: east component - Z: vertical component (+ve down) - F: total intensity unit: degree or nT

If you want to use IGRF-13 more flexibly, you can use module calculate. There is two function which is closer to Fortran. You can change it for different coordination. >```from pyIGRF import calculate```

Another module load_coeffs can be used to get g[m][n] or h[m][n] same as that in formula. >```from pyIGRF.load_coeffs import get_coeffs```

## Model Introduction and igrf13-coeffs File Download https://www.ngdc.noaa.gov/IAGA/vmod/igrf.html

Metadata

Release files for pyIGRF 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyIGRF 1.0.0
File Size Uploaded
pyigrf-1.0.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyIGRF 1.0.0
File Interpreter ABI Platform
pyigrf-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / pyigrf-1.0.0.tar.gz

Download URL pyigrf-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d117a33a8ee5a31aeae415fe9a6777a6586e7ee54184fc74d84df20bb75ebd81
BLAKE2b-256 checksum
How to use checksums
97aeac427ef6d7882a814f4c7c18fc709f525d5e3a3c32a79f689559f90e67c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / pyigrf-1.0.0-py3-none-any.whl

Download URL pyigrf-1.0.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
733487d5750c8c2f8558c23d4bdebfb1e9c837e5aef437fc4425042c9dbb2d0b
BLAKE2b-256 checksum
How to use checksums
3f53826e9f823b31120ddbd525070cd679e6bac6136aa5bb8ce4e112b6ddda34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.3

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page