-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
Metadata-Version: 1.0 | ||
Name: pyIGRF | ||
Version: 0.1.6 | ||
Summary: IGRF-12 Model by Python | ||
Version: 0.3.3 | ||
Summary: IGRF-13 Model by Python | ||
Home-page: https://github.com/zzyztyy/pyIGRF | ||
Author: zzyztyy | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: # pyIGRF | ||
## What is pyIGRF? | ||
This is a package of IGRF-12 (International Geomagnetic Reference Field) about python version. | ||
It don't need any Fortran compiler. But it needs numpy. | ||
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``` | ||
|
@@ -24,13 +26,6 @@ Description: # pyIGRF | |
or calculate the annual variation of magnetic filed intensity. | ||
>```pyIGRF.igrf_variation(lat, lon, alt, date)``` | ||
|
||
If you want to use IGRF-12 more flexible, 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``` | ||
|
||
the response is 7 float number about magnetic filed which is: | ||
- D: declination (+ve east) | ||
- I: inclination (+ve down) | ||
|
@@ -40,7 +35,17 @@ Description: # pyIGRF | |
- Z: vertical component (+ve down) | ||
- F: total intensity | ||
*unit: degree or nT* | ||
## Model Introduction and igrf12-coeffs File Download | ||
|
||
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 | ||
|
||
Platform: UNKNOWN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setup( | ||
name="pyIGRF", | ||
version="0.3.2", | ||
version="0.3.3", | ||
author="zzyztyy", | ||
author_email="[email protected]", | ||
description="IGRF-13 Model by Python", | ||
|