Skip to main content

A Python wrapper for Apex coordinates

Project description

Documentation Status PyPI Package latest release

This is a Python wrapper for the Apex fortran library by Emmert et al. [2010] [1], which allows converting between geodetic, modified apex, and quasi-dipole coordinates as well as getting modified apex and quasi-dipole base vectors (Richmond [1995] [2]). MLT calculations are also included. The package is free software (MIT license).

Quick start

Install (requires NumPy):

pip install apexpy

Conversion is done by creating an Apex object and using its methods to perform the desired calculations. Some simple examples:

>>> from apexpy import Apex
>>> A = Apex(date=2015.3)  # datetime objects are also supported
>>> # geo to apex, scalar input
>>> mlat, mlon = A.convert(60, 15, 'geo', 'apex', height=300)
>>> mlat
57.469573974609375
>>> mlon
93.633583068847656
>>> # apex to geo, array input
>>> glat, glon = A.convert([90, -90], 0, 'apex', 'geo', height=0)
>>> glat
array([ 83.09959412, -74.38826752])
>>> glon
array([ -84.59458923,  125.71492767])
>>> # geo to MLT
>>> import datetime as dt
>>> mlat, mlt = A.convert(60, 15, 'geo', 'mlt', datetime=dt.datetime(2015, 2, 10, 18, 0, 0))
>>> mlat
56.590423583984375
>>> mlt
19.108103879292806
>>> # can also convert magnetic longitude to mlt
>>> mlt = A.mlon2mlt(120, dt.datetime(2015, 2, 10, 18, 0, 0))
>>> mlt
20.893547503153481

If you don’t know or use Python, you can also use the command line. See details in the full documentation.

Documentation

https://apexpy.readthedocs.org/

References

Badges

docs

Documentation Status

tests

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

package

PyPI Package latest release Supported versions
PyPI Wheel Supported implementations

Changelog

1.0.1 (2016-03-10)

  • Remove geocentric to geodetic conversion of subsolar point based on feedback from Art Richmond. (The subsolar point is the same in geocentric and geodetic coordinates.) The helper function gc2gdlat have been kept to preserve backwards compatibility.

1.0.0 (2015-11-30)

  • 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

apexpy-1.0.1.zip (268.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

apexpy-1.0.1-cp34-cp34m-win_amd64.whl (398.0 kB view details)

Uploaded CPython 3.4mWindows x86-64

apexpy-1.0.1-cp34-cp34m-win32.whl (390.1 kB view details)

Uploaded CPython 3.4mWindows x86

apexpy-1.0.1-cp33-cp33m-win_amd64.whl (411.5 kB view details)

Uploaded CPython 3.3mWindows x86-64

apexpy-1.0.1-cp33-cp33m-win32.whl (389.6 kB view details)

Uploaded CPython 3.3mWindows x86

apexpy-1.0.1-cp27-cp27m-win_amd64.whl (394.2 kB view details)

Uploaded CPython 2.7mWindows x86-64

apexpy-1.0.1-cp27-cp27m-win32.whl (387.4 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file apexpy-1.0.1.zip.

File metadata

  • Download URL: apexpy-1.0.1.zip
  • Upload date:
  • Size: 268.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apexpy-1.0.1.zip
Algorithm Hash digest
SHA256 09b6b5ee59787feba7583544b5aed32d0eae33f427bb03b19100c33d436361b3
MD5 8988306c3b4aceac3caa87fd29f57d04
BLAKE2b-256 7bbe7b716288d255a6bd3f8dc8c1bbda4fd80ceb7969ccff35947403b0567cef

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 bd50de7840e36f5ae789c5f786221233f590d38734c404738691711ca2671ad0
MD5 f4a4e5a28f32342607d55671e803028d
BLAKE2b-256 b42b383e0282a9d390d67ee454c8c2936b5c33077cb19a4e527b4458c7e97dc1

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 ca21c5b86506055780c26086e1b0730bfdeda867d825ef68ce4ff863081781df
MD5 815276711132eee7747d23dbbc17404a
BLAKE2b-256 d417560f38d15f6630cbafd85adfc031b5c550f8c3d2ae72ccd24f7dd2b82bb9

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 9b941b02f14b318e799cbf702041d9e7c068afcce30ad284c33c71fda01c43cd
MD5 da2f70444a9a3b994be6d2532636582c
BLAKE2b-256 87b04527c93dce9db932e1c53727e7e71d765a7457bd036fc88d7d04bd394cc1

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 769dd3a881cdd7261c5653517e5271eee6ee040359eedceb64230fd10ad1128b
MD5 03156eca2ba2242674aa9bdd03140039
BLAKE2b-256 ab9c9f64cae677bf60498fc21ea4216f7e3472334cfb4b79873212bf9f673a7a

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 f056e60da1175cfb9ff24aedfa1a24ed0db08a314528a2c140aa3e8f2fccd689
MD5 aaccfcc91bf04a23d2c5350b4dc0da12
BLAKE2b-256 d4fac7611d20d519a0bd411678921bee9314598d66bfbbd5b980758bd41fd89e

See more details on using hashes here.

File details

Details for the file apexpy-1.0.1-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for apexpy-1.0.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 4dbe75f5eddde0ebc3f11ea40cd63b34043c7b95b920f280b8b420e046c162bf
MD5 e3133584ae4b8b42bb8f7d6e684f4109
BLAKE2b-256 a6f4e9ddb3656db5ad112d584d3513b87f59314ae1a05b0462cf52df71bb10b5

See more details on using hashes here.

Supported by

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