Skip to main content

IGRF-13 Model by Python

Project description

# pyIGRF ## What is pyIGRF? This is a package of IGRF-13 (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-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

pyIGRF-0.3.3.tar.gz (14.0 kB view details)

Uploaded Source

File details

Details for the file pyIGRF-0.3.3.tar.gz.

File metadata

  • Download URL: pyIGRF-0.3.3.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for pyIGRF-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7d3d2d03416dfeab1bc2047b7c1134c426727ec77f9b08778fbe0c54ee4405c5
MD5 7599eb2ee33a51407864e9a85ed2ec32
BLAKE2b-256 6fc7f020a3402dc27fdfc6b49d6c212de9c496019b598514ccd5e1ed6d56f8c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page