IGRF-14 Model by Python
Project description
# 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pyigrf-1.0.0.tar.gz.
File metadata
- Download URL: pyigrf-1.0.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d117a33a8ee5a31aeae415fe9a6777a6586e7ee54184fc74d84df20bb75ebd81
|
|
| MD5 |
cd257a6d80018e46efe062b6b4e99106
|
|
| BLAKE2b-256 |
97aeac427ef6d7882a814f4c7c18fc709f525d5e3a3c32a79f689559f90e67c9
|
File details
Details for the file pyigrf-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pyigrf-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733487d5750c8c2f8558c23d4bdebfb1e9c837e5aef437fc4425042c9dbb2d0b
|
|
| MD5 |
04169112c1ffe457d96b5101e0f944ee
|
|
| BLAKE2b-256 |
3f53826e9f823b31120ddbd525070cd679e6bac6136aa5bb8ce4e112b6ddda34
|