Skip to main content

pure Python coordinate conversions, following convention of several popular Matlab routines.

Project description

https://zenodo.org/badge/DOI/10.5281/zenodo.213676.svg http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat https://travis-ci.org/scivision/pymap3d.svg?branch=master https://coveralls.io/repos/github/scivision/pymap3d/badge.svg?branch=master Maintainability

Python 3-D coordinate conversions

Python coordinate conversions, following convention of several popular Matlab routines.

API docs:

https://www.scivision.co/pymap3d

For those not having:

  • AstroPy: lower accuracy fallback functions are included for some functions.

  • Numpy: without numpy, scalar inputs are handled with pure Python builtins.

Why not PyProj? PyMap3D does not require anything beyond pure Python. PyProj is very powerful and comprehensive, but requires a learning curve to use, particularly for Python users accustomed to Matlab.

prereqs:

any of Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, …

OPTIONAL prereqs:

Numpy, AstroPy (for full functionality)

Install

python -m pip install -e .

Usage

a few quick examples

import pymap3d as pm

lat,lon,alt = pm.eci2geodetic(eci, t)

az,el,range = pm.geodetic2aer(lat, lon, alt, 42, -82, 0)

Functions

Popular mapping toolbox functions ported to Python include:

aer2ecef  aer2enu  aer2geodetic  aer2ned
ecef2aer  ecef2enu  ecef2enuv  ecef2geodetic  ecef2ned  ecef2nedv  ecef2eci
eci2ecef
enu2aer  enu2ecef  enu2ecefv  enu2geodetic
geodetic2aer  geodetic2ecef  geodetic2enu  geodetic2ned
ned2aer  ned2ecef  ned2ecefv  ned2geodetic
vreckon vdist
azel2radec radec2azel

Caveats

  • Atmospheric effects neglected in all functions not invoking AstroPy. Need to update code to add these input parameters (just start a GitHub Issue to request).

  • Planetary perturbations and nutation etc. not fully considered.

Matlab / Octave

The matlab/ directory contains a subset of the Python conversion functions, usable from Matlab or GNU Octave. Mathworks currently charges $1000 for the Matlab Mapping Toolbox that provides these functions.

  • The full set of Python conversions can be accessed from Matlab >= R2014b by commands like:

    lla = py.pymap3d.geodetic2ecef(x,y,z)
  • Matlab documentation generated by m2html.

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

pymap3d-1.5.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

pymap3d-1.5.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file pymap3d-1.5.1.tar.gz.

File metadata

  • Download URL: pymap3d-1.5.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymap3d-1.5.1.tar.gz
Algorithm Hash digest
SHA256 d75de349ad0fd7a49975b548909da9912f5254b800fefdcce34c640d615f93db
MD5 0d508d9c0cc7c32ee9f0b4d74822b30c
BLAKE2b-256 f6554a0a046d96cc530e6d91de04611ed321c556f99e8232e912bda229bb3665

See more details on using hashes here.

File details

Details for the file pymap3d-1.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pymap3d-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c34dd04460ee5506a44d92a148efd5e8885a7585594bde05303d9780bca9c387
MD5 7cf72f75d5dab71b071ef7346a495014
BLAKE2b-256 3f1a9dc4d6973e34d71d22b3078b6c4ce30a88b83a1918b7b2573492ee3ed493

See more details on using hashes here.

Supported by

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