Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A Python wrapper for AACGM-v2 magnetic coordinates

Project description

Documentation Status PyPI Package latest release

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.

Badges

docs Documentation Status
tests
package
PyPI Package latest release Supported versions
PyPI Wheel Supported implementations

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

History Node

2.4.2

History Node

2.4.1

History Node

2.4.0

History Node

2.0.0

History Node

1.0.13

History Node

1.0.12

History Node

1.0.11

This version
History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.3

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aacgmv2-1.0.10-cp27-none-win32.whl (470.1 kB) Copy SHA256 hash SHA256 Wheel cp27 Oct 9, 2015
aacgmv2-1.0.10-cp27-none-win_amd64.whl (474.3 kB) Copy SHA256 hash SHA256 Wheel cp27 Oct 9, 2015
aacgmv2-1.0.10-cp33-none-win32.whl (470.0 kB) Copy SHA256 hash SHA256 Wheel cp33 Oct 9, 2015
aacgmv2-1.0.10-cp33-none-win_amd64.whl (474.4 kB) Copy SHA256 hash SHA256 Wheel cp33 Oct 9, 2015
aacgmv2-1.0.10-cp34-none-win32.whl (470.0 kB) Copy SHA256 hash SHA256 Wheel cp34 Oct 9, 2015
aacgmv2-1.0.10-cp34-none-win_amd64.whl (474.4 kB) Copy SHA256 hash SHA256 Wheel cp34 Oct 9, 2015
aacgmv2-1.0.10-cp35-none-win32.whl (472.9 kB) Copy SHA256 hash SHA256 Wheel cp35 Oct 9, 2015
aacgmv2-1.0.10-cp35-none-win_amd64.whl (479.5 kB) Copy SHA256 hash SHA256 Wheel cp35 Oct 9, 2015
aacgmv2-1.0.10.zip (518.3 kB) Copy SHA256 hash SHA256 Source None Oct 9, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page