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([ 163.16984389, 343.16984389])
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.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.10.zip
(518.3 kB
view hashes)
Built Distributions
aacgmv2-1.0.10-cp35-none-win32.whl
(472.9 kB
view hashes)
aacgmv2-1.0.10-cp34-none-win32.whl
(470.0 kB
view hashes)
aacgmv2-1.0.10-cp33-none-win32.whl
(470.0 kB
view hashes)
aacgmv2-1.0.10-cp27-none-win32.whl
(470.1 kB
view hashes)
Close
Hashes for aacgmv2-1.0.10-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084a41bc72bcf78d7afa60f35c4e2a8daebf33e677eca90cf91fed413e7a35f9 |
|
MD5 | e0a093c1754f37baac3a162b30de6e5e |
|
BLAKE2b-256 | 3466be39b5c7b2e9def5f1b5955a9652f921c6a9cf3bcf04c6d3b37ffedd3733 |
Close
Hashes for aacgmv2-1.0.10-cp35-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddd1dc324bbbf6adfddf179c7a93c2f7f613ce32504b816e560a62c033427991 |
|
MD5 | 18513832405fa07f51fd3afb9ec998b6 |
|
BLAKE2b-256 | fab3668540857e5500777d65397039c55e14e18fc0c62b298365b195750aff3d |
Close
Hashes for aacgmv2-1.0.10-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734aab6a5038e5526ba72106c39fc36c8f230540bd68d042bfeab53503a1bb49 |
|
MD5 | 4a81a5987b77aee131eba9b02652424a |
|
BLAKE2b-256 | 9b7835c7c0caa2c67e7de5d065731b37b232bcae9fed357200c8d55257cfc655 |
Close
Hashes for aacgmv2-1.0.10-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e44210ec10b4ba5e543f11ebe28731719736f1bd1d9bc648572eab51674dd2b |
|
MD5 | 45bd2d228e1b866f83272eb204860dd7 |
|
BLAKE2b-256 | 102108df5254797b7e1d6f6d1dfd4fa04723c667e14336aeab139e35504f6d59 |
Close
Hashes for aacgmv2-1.0.10-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea89b13f1e37193143c5914ef7f497722fe81a53fca1ce3c7f45a7b81c23c88 |
|
MD5 | b0536902e742a18f95342be3170cfa72 |
|
BLAKE2b-256 | 728133c50a83ef803d523075a0743f15d42aba363f6cbbec75fd22e1066fa5e3 |
Close
Hashes for aacgmv2-1.0.10-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ad1b02aca3149a75745a11b48455089a779df811051c30a03a7b49c184fbae |
|
MD5 | 13b476b0b1840c262b4fd870638c5e54 |
|
BLAKE2b-256 | 929e6ad81259953adcbd87c3410797b8f46e4d043c31740e5e3227b2a14f2ced |
Close
Hashes for aacgmv2-1.0.10-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e24db0fe07ad8afe9de42636579edf0be5b920f7190d8b74406e1c589cc21029 |
|
MD5 | 6e18ee005b9eadcb5e8f8f7d49458927 |
|
BLAKE2b-256 | f245afda5c845f045cce008c826d79032a19922131cc1a3bc83c84fb3876cd88 |
Close
Hashes for aacgmv2-1.0.10-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95de1cab42b9dd3aca339c0774b044a43fd2430ad9f78a48e4fe7cbc9473990c |
|
MD5 | be03b803b8a09c1a164ebcb37d1b9427 |
|
BLAKE2b-256 | b9a3a3f60069b856e00b41177b3f02418649e73d5b220b398f24feb44681eb9d |