Skip to main content

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

Project description Maintainability

Python 3-D coordinate conversions

Python coordinate conversions, following convention of several popular Matlab routines. Tested from Python 2.7 through Python 3.7+

For those not having AstroPy, lower accuracy fallback functions are included for some functions.

prereqs:AstroPy, Numpy, Python 3 or Python 2.7



python -m pip install -e .


python -m pip install pymap3d


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)


Popular mapping toolbox functions ported to Python include:

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


  • 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pymap3d, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pymap3d-1.3.0-py3-none-any.whl (18.4 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size pymap3d-1.3.0.tar.gz (15.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page