IGRF-12 Model by Python
Project description
# pyIGRF ## What is pyIGRF? This is a package of IGRF-12 (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. But it needs 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-12 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 loadCoeffs can be used to get g[m][n] or h[m][n] same as that in formula. >```from pyIGRF.loadCoeffs import getCoeffs```
## Model Introduction and igrf12-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
File details
Details for the file pyIGRF-0.1.8.tar.gz
.
File metadata
- Download URL: pyIGRF-0.1.8.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365a97bdaa6237865c9ff992c979951792cd158ad66b656f123a6ca1d7961146 |
|
MD5 | d0b1e2e49f4ff898090ce88755cde67c |
|
BLAKE2b-256 | f1e4b1b71c388ac5bba77aa10bd4d1a94e24e37eb831856f00f7e74a00c0852e |