Skip to main content

A Python wrapper for AACGM-v2 magnetic coordinates

Project description

docs

Documentation Status

tests

Travis-CI Build Status AppVeyor Build Status Requirements Status
Coverage Status Coverage Status
Code Quality Status Scrutinizer Status Codacy Code Quality Status CodeClimate Quality Status

package

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations

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

https://aacgmv2.readthedocs.org/

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


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.7.zip (517.7 kB view hashes)

Uploaded Source

Built Distributions

aacgmv2-1.0.7-cp35-none-win_amd64.whl (479.3 kB view hashes)

Uploaded CPython 3.5 Windows x86-64

aacgmv2-1.0.7-cp35-none-win32.whl (472.6 kB view hashes)

Uploaded CPython 3.5 Windows x86

aacgmv2-1.0.7-cp34-none-win_amd64.whl (474.2 kB view hashes)

Uploaded CPython 3.4 Windows x86-64

aacgmv2-1.0.7-cp34-none-win32.whl (469.8 kB view hashes)

Uploaded CPython 3.4 Windows x86

aacgmv2-1.0.7-cp33-none-win_amd64.whl (474.2 kB view hashes)

Uploaded CPython 3.3 Windows x86-64

aacgmv2-1.0.7-cp33-none-win32.whl (469.8 kB view hashes)

Uploaded CPython 3.3 Windows x86

aacgmv2-1.0.7-cp27-none-win_amd64.whl (474.1 kB view hashes)

Uploaded CPython 2.7 Windows x86-64

aacgmv2-1.0.7-cp27-none-win32.whl (469.9 kB view hashes)

Uploaded CPython 2.7 Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page