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.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.0.zip (517.2 kB view details)

Uploaded Source

Built Distributions

aacgmv2-1.0.0-cp35-none-win_amd64.whl (479.2 kB view details)

Uploaded CPython 3.5 Windows x86-64

aacgmv2-1.0.0-cp35-none-win32.whl (472.5 kB view details)

Uploaded CPython 3.5 Windows x86

aacgmv2-1.0.0-cp34-none-win_amd64.whl (474.1 kB view details)

Uploaded CPython 3.4 Windows x86-64

aacgmv2-1.0.0-cp34-none-win32.whl (469.7 kB view details)

Uploaded CPython 3.4 Windows x86

aacgmv2-1.0.0-cp33-none-win_amd64.whl (474.1 kB view details)

Uploaded CPython 3.3 Windows x86-64

aacgmv2-1.0.0-cp27-none-win_amd64.whl (474.0 kB view details)

Uploaded CPython 2.7 Windows x86-64

File details

Details for the file aacgmv2-1.0.0.zip.

File metadata

  • Download URL: aacgmv2-1.0.0.zip
  • Upload date:
  • Size: 517.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aacgmv2-1.0.0.zip
Algorithm Hash digest
SHA256 cea0280be2376474165f266c937dbc374ef2e295d7668ab13181a2dbc148e649
MD5 bd9c79998059e39f294dc3b539404ba6
BLAKE2b-256 4cdeb9c433f95f2aff827b97cfd04f362bdb65bcf9f71d1889c0507246c6ecde

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 bf5e2082e9bda8c505400616fc7cb23cbe438f07208a8a0535ad79b7e49b54cb
MD5 4849999375e013f47fb03bcc9a52b1ea
BLAKE2b-256 346afcc9ec8226f7310ff4d54432ebde9c8e03b5e73142c9d9050180086abcdf

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp35-none-win32.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp35-none-win32.whl
Algorithm Hash digest
SHA256 ee9d807ec8553760f821d1c3c25841fb6184a4aa2c1c6d613a155dd9ab562f6e
MD5 e73f8ef6dc11ca8770447ace80f2b5a4
BLAKE2b-256 8951b8bbfe79d8a6b67936d8a6cf08281edc740d99ff9e049ff7da40a9572b92

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 a1f55bdf7720c8bc006ba901887e1a4d29fe88014e43e89f896f67d8213093fb
MD5 6058cbf7486bed1878d7546077d63b35
BLAKE2b-256 e7cffa372debc548348bd92ca1f223312f4759ae9631f4b55713c72f806b881a

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 003a5fc4785899fef9ce7d3705dbd893495d56796975f6593e12e3849f331060
MD5 9fc1e34832eafcfe24268d1870d9c508
BLAKE2b-256 5e82aebcfb604281e948c060ec85f41425077b01228990caf06cf95705bc626c

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 805155de4c3c6b48f83920bcc3b94e5185d0bcb3ce23406b493a1ad41a6569eb
MD5 758a46cecf62c81b4762339d17ba5a8b
BLAKE2b-256 bd8b4ea45627cf0dddf42713e252e6bf8317d1f185f230001315757b83e128cf

See more details on using hashes here.

File details

Details for the file aacgmv2-1.0.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for aacgmv2-1.0.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 263d807040220ab240ddc2f4c60a3752992130233149d3e20977595936a295f3
MD5 0a4b55d2d159f6d91d11f68438d01dbe
BLAKE2b-256 db695119f65942b50bc3b08f72286e2714538c40d4ec64daab611ec5711cf185

See more details on using hashes here.

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