# 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyigrf-1.0.0.tar.gz | 6.4 kB | Without provenance | Details for pyigrf-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyigrf-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyigrf-1.0.0-py3-none-any.whl |
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
|
Security for pyIGRF 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.