A Python wrapper for AACGM-v2 magnetic coordinates
Project description
This is a Python wrapper for the AACGM-v2 C library, which allows converting between geographic and magnetic coordinates. MLT calculations are also included. The package is free software (MIT license).
Quick start
Install (requires NumPy):
pip install aacgmv2
Convert between AACGM and magnetic coordinates:
>>> from aacgmv2 import convert >>> from datetime import date >>> # geo to AACGM, single numbers >>> mlat, mlon = convert(60, 15, 300, date(2013, 11, 3)) >>> mlat array(57.47207691280528) >>> mlon array(93.62138045643167) >>> # AACGM to geo, mix arrays/numbers >>> glat, glon = convert([90, -90], 0, 0, date(2013, 11, 3), a2g=True) >>> glat array([ 82.96656071, -74.33854592]) >>> glon array([ -84.66516034, 125.84014944])
Convert between AACGM and MLT:
>>> from aacgmv2 import convert_mlt >>> from datetime import datetime >>> # MLT to AACGM >>> mlon = convert_mlt([0, 12], datetime(2013, 11, 3, 18, 0), m2a=True) >>> mlon array([ 159.09467412, 339.09467412])
If you don’t know or use Python, you can also use the command line. See details in the full documentation.
Documentation
Badges
docs |
|
---|---|
tests |
|
package |
Changelog
1.0.11 (2015-10-26)
Fix bug in subsolar/MLT conversion
1.0.10 (2015-10-08)
No code changes, debugged automatic build/upload process and needed new version numbers along the way
1.0.0 (2015-10-07)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aacgmv2-1.0.11.zip
(518.4 kB
view hashes)
Built Distributions
aacgmv2-1.0.11-cp35-none-win32.whl
(472.9 kB
view hashes)
aacgmv2-1.0.11-cp34-none-win32.whl
(470.1 kB
view hashes)
aacgmv2-1.0.11-cp33-none-win32.whl
(470.1 kB
view hashes)
aacgmv2-1.0.11-cp27-none-win32.whl
(470.2 kB
view hashes)
Close
Hashes for aacgmv2-1.0.11-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a15f7209c013b46edb59f0d3f4c403b8907c32eae9df8e82afde7643c2bede0 |
|
MD5 | a438303ea3594587db4c5b68057f840d |
|
BLAKE2b-256 | 9c7051d3d430025bc91536ec0d9b74bc3a3a0759bc7f74c5c90c518b19c5bb0c |
Close
Hashes for aacgmv2-1.0.11-cp35-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2ec3d176c5522fb4a3d9d51f94acf5400b5910779ef9f338179e70b9457c89e |
|
MD5 | 3aa3dafb995a3e8707d1cd136bd9700e |
|
BLAKE2b-256 | 5f677cf8568188e7891252f497919d139488e306dfcd8ae4ebb16889bc54f348 |
Close
Hashes for aacgmv2-1.0.11-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f24015c5339be0b0ac24185d5fe3b8e533267a91dec988a0a0b8d4ae2eb1900 |
|
MD5 | 5382e4a13fad92d22d1064092396972c |
|
BLAKE2b-256 | b9f887dbe544c02a506df8ffee34bbb841364bc96e1d46a7bd4aec02f601c114 |
Close
Hashes for aacgmv2-1.0.11-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4303d4e3c7116d821ebbd0acddb208e174ac1397998bc7a71764990203d66053 |
|
MD5 | 27135dbae3aee3abc16fb962a5f58387 |
|
BLAKE2b-256 | 9a2b6b548d20575dede446801e2c7085f51c7b76b7441dd4caeaa81bb68498b8 |
Close
Hashes for aacgmv2-1.0.11-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd793df82128f35ef2c0aa64ff41f49b3e87ad34eea5e64197ddc2f08f1a0919 |
|
MD5 | 79174988a84c00ce7a13099270e51f1d |
|
BLAKE2b-256 | 17ea6d12c55cda331db29c5b6ab1fd00d7b8c7dcae3e152de4e8a7bdd98eb30c |
Close
Hashes for aacgmv2-1.0.11-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6400de3ddf4bbff57cfda73acae994b569460f2393052ad735d9454d76664df |
|
MD5 | 6937f1548a4778d021104cb5df1a3d7d |
|
BLAKE2b-256 | ad30447539bccd81cf2dcd731126d55b4bcfc72f80bdb195ac0fe51f82981873 |
Close
Hashes for aacgmv2-1.0.11-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d35ddf2fc53e3f630c1618f53a8d7a7eeeb9aac25e39b417658cd9b09fabd1 |
|
MD5 | 3d883a26896ba2e198c55586dc214b59 |
|
BLAKE2b-256 | 59c329858b2ffd642d51a6d82e0ca7f713c23dc159a06a0002d341a1700d7165 |
Close
Hashes for aacgmv2-1.0.11-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49fcd4156129934ca75dfd4b3ffb8d7fd465572f5bbb87c1c743022e49bf1ee |
|
MD5 | 0d91800e794c75c6e412d8b75f57111d |
|
BLAKE2b-256 | 0f910c9564694273d327fc80f79a89824611af8562106fd1804b6ca048863185 |