Skip to main content
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.

Metadata

Release files for pymap3d 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymap3d 1.5.1
File Size Uploaded
pymap3d-1.5.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymap3d 1.5.1
File Interpreter ABI Platform
pymap3d-1.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.1 kB

Release files / pymap3d-1.5.1.tar.gz

Download URL pymap3d-1.5.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d75de349ad0fd7a49975b548909da9912f5254b800fefdcce34c640d615f93db
BLAKE2b-256 checksum
How to use checksums
f6554a0a046d96cc530e6d91de04611ed321c556f99e8232e912bda229bb3665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymap3d-1.5.1-py3-none-any.whl

Download URL pymap3d-1.5.1-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c34dd04460ee5506a44d92a148efd5e8885a7585594bde05303d9780bca9c387
BLAKE2b-256 checksum
How to use checksums
3f1a9dc4d6973e34d71d22b3078b6c4ce30a88b83a1918b7b2573492ee3ed493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

3.2.0

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.9.1

2 release files

2.9.0

2 release files

2.8.0

1 release file

2.7.2

1 release file

2.7.1

1 release file

2.7.0

2 release files

2.6.1

1 release file

2.6.0

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.3

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.8.1

1 release file

1.8.0

1 release file

1.7.15

1 release file

1.7.14

1 release file

1.7.13

1 release file

1.7.12

1 release file

1.7.11

1 release file

1.7.10

1 release file

1.7.9

1 release file

1.7.8

1 release file

1.7.7

1 release file

1.7.6

1 release file

1.7.5

1 release file

1.7.4

1 release file

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.5.2

2 release files

This release

1.5.1 This release

2 release files

1.3.0

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page