This is a package of IGRF-14 (International Geomagnetic Reference Field) about python version.
Project description
pyIGRF14
[!IMPORTANT] This project was originally developed by @zzyztyy at https://github.com/zzyztyy/pyIGRF There was some bugs that needed to be fixed. And the original author was unresponsive. This project has been re-published under the name
pyIGRF14to fix these issues.Provided with best effort support.
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.
pip install pyIGRF14
How to Use it?
First import this package.
import pyIGRF14 as 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-14 more flexibly, you can use module calculate. There is two function which is closer to Fortran. You can change it for different coordination.
from pyIGRF14 import calculate
Another module load_coeffs can be used to get g[m][n] or h[m][n] same as that in formula.
from pyIGRF14.load_coeffs import get_coeffs
Model Introduction and igrf13-coeffs File Download
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyigrf14-1.0.4-py3-none-any.whl.
File metadata
- Download URL: pyigrf14-1.0.4-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d3c03a15de090fb3e669bf4d2890a3430e69c474cb88afdd8f965a09e24d00
|
|
| MD5 |
0959c2fae9a54a7ed3b2751330f57a39
|
|
| BLAKE2b-256 |
03425ef49f003970e46e9efffd48241f589a2b1d692f5541a5ede2a69f887b40
|
Provenance
The following attestation bundles were made for pyigrf14-1.0.4-py3-none-any.whl:
Publisher:
ci.yml on OpenSpeleo/pyIGRF14
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyigrf14-1.0.4-py3-none-any.whl -
Subject digest:
95d3c03a15de090fb3e669bf4d2890a3430e69c474cb88afdd8f965a09e24d00 - Sigstore transparency entry: 591130708
- Sigstore integration time:
-
Permalink:
OpenSpeleo/pyIGRF14@4001052e77e7402fc84d06db279ab43b9d8a8a48 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/OpenSpeleo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4001052e77e7402fc84d06db279ab43b9d8a8a48 -
Trigger Event:
push
-
Statement type: