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])
Documentation
Badges
docs |
|
|---|---|
tests |
|
package |
Changelog
1.0.9 (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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aacgmv2-1.0.9.zip.
File metadata
- Download URL: aacgmv2-1.0.9.zip
- Upload date:
- Size: 517.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb726c73ea9dace80890e2cfb56505867db1bbceb9c9f88768e3e05ee4b7940
|
|
| MD5 |
1d026cee294cebb7b80441f795e90393
|
|
| BLAKE2b-256 |
4ad0acf552ceea71ac6041693ca8a6fe491a216f7fa3094227c0291261f7f0f1
|
File details
Details for the file aacgmv2-1.0.9-cp27-none-win32.whl.
File metadata
- Download URL: aacgmv2-1.0.9-cp27-none-win32.whl
- Upload date:
- Size: 470.0 kB
- Tags: CPython 2.7, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
189f7025de17e71edf24e73b03d370b82678be6eb24efd952793f00a07d7904b
|
|
| MD5 |
db1051bef8bf42ffa1a2665ddf4db202
|
|
| BLAKE2b-256 |
ea7a355b3dde2802679a618dfa2e414e29f7592523e19fe24d9fff7c80091769
|