A Python wrapper for AACGM-v2 magnetic coordinates
Project description
docs |
|
---|---|
tests |
|
package |
This is a Python wrapper for the AACGM-v2 C library, which allows converting between geographic and magnetic coordinates. MLT calculations are also included.
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])
Documentation
Changelog
1.0.7 (2015-10-07)
No code changes, needed new version number for automated build/upload process
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
Built Distributions
File details
Details for the file aacgmv2-1.0.7.zip
.
File metadata
- Download URL: aacgmv2-1.0.7.zip
- Upload date:
- Size: 517.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46710046ce2b34e8ef3f202858d37788ae61355aed47df15209e326fc4d925a7 |
|
MD5 | de913c0591d5b1c144ed8ff3466a1320 |
|
BLAKE2b-256 | 7c15738fe082af1ac5626e5c711524cdcf8f3b8a04499da4c7c8b25ac66b8603 |
File details
Details for the file aacgmv2-1.0.7-cp35-none-win_amd64.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp35-none-win_amd64.whl
- Upload date:
- Size: 479.3 kB
- Tags: CPython 3.5, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a129ac0a49543bdb1fdbe85c2a29004001f105ebeb0d2c0e4b06ae9d3783eec |
|
MD5 | f3f1e33b5056e3a1843f6eae19424fb6 |
|
BLAKE2b-256 | 2ddccfb6fc8b5b35fb0763dd419986079d0f93546d527e022f78d552f1f10f26 |
File details
Details for the file aacgmv2-1.0.7-cp35-none-win32.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp35-none-win32.whl
- Upload date:
- Size: 472.6 kB
- Tags: CPython 3.5, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e3e875171dfb004b2f7e8b00fc1a6b2c2840c4482a30e928fbac2c692927257 |
|
MD5 | a9119afe2541622e814b7322c722af26 |
|
BLAKE2b-256 | ade0ac9a38836fed7f14bfc4f2c1de4c38b0d43b1ad071de3a02b2103ac636f0 |
File details
Details for the file aacgmv2-1.0.7-cp34-none-win_amd64.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp34-none-win_amd64.whl
- Upload date:
- Size: 474.2 kB
- Tags: CPython 3.4, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286aa524d740295e91ef205ceaf550a4fe43e5b5772295f6e713742894cc4fa0 |
|
MD5 | 722ab06c0927aaf6b8aa67b6098d1e36 |
|
BLAKE2b-256 | bc93cfe6fc3213b3156f371c1ea24dcd56987640f10564aa57ade6b73d47893d |
File details
Details for the file aacgmv2-1.0.7-cp34-none-win32.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp34-none-win32.whl
- Upload date:
- Size: 469.8 kB
- Tags: CPython 3.4, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e849a77d872f15a14c069360a702f31708f5fa761387180d13b3dcee40011f |
|
MD5 | b5072da75124f605508dc7b15d207801 |
|
BLAKE2b-256 | f7b88b498e7e4d8ab953c61b8bc883e3c3c311786552586fc20eef2af5919926 |
File details
Details for the file aacgmv2-1.0.7-cp33-none-win_amd64.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp33-none-win_amd64.whl
- Upload date:
- Size: 474.2 kB
- Tags: CPython 3.3, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b86b85426d19a9af0e4ccde7f397a05d8aa758a03a645172ec290678bbfe01 |
|
MD5 | cc48cc5dc17c8a87b640a34f5863577b |
|
BLAKE2b-256 | 82a43f55f81ecd652fc524e824e5ba45e64659c5a4d85886cdb7e9472e318df7 |
File details
Details for the file aacgmv2-1.0.7-cp33-none-win32.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp33-none-win32.whl
- Upload date:
- Size: 469.8 kB
- Tags: CPython 3.3, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dada8e29806026031095d6699414fc759971ffbc3d3b145e6380fea2c80022c7 |
|
MD5 | e342332f94a784ce7bd4b8973d752e4e |
|
BLAKE2b-256 | 0358dd7c42d1687020a3aef4d7bbc04e3ec849a5f4115db6bdd7f9acb4298f46 |
File details
Details for the file aacgmv2-1.0.7-cp27-none-win_amd64.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp27-none-win_amd64.whl
- Upload date:
- Size: 474.1 kB
- Tags: CPython 2.7, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6084f17401cecb66f5d57e09d7acdf82e4c9687d3e75882c2183b04ba1c3ae4b |
|
MD5 | 414d33abcd10067bbaed08815c321967 |
|
BLAKE2b-256 | 3418227e61d973d25c1f99b0641c944280ba5c5f6d627a51d9ad6934f022ee33 |
File details
Details for the file aacgmv2-1.0.7-cp27-none-win32.whl
.
File metadata
- Download URL: aacgmv2-1.0.7-cp27-none-win32.whl
- Upload date:
- Size: 469.9 kB
- Tags: CPython 2.7, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4901cb564d06185a4869a281c6533a3d0bd10829583ba0b1f99dea4a5ca3dc66 |
|
MD5 | 288d098dd9c341b1d7b0f891f3aa89af |
|
BLAKE2b-256 | 3b822b77a2ce9836c7c81f0e23be04cf47caee0fb8d27e053a39b935b1a56c97 |