Skip to content

NED (North East Down) to LLA (Latitude Longitude Altitude) conversion for Python

Notifications You must be signed in to change notification settings

strawlab/pyned2lla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyned2lla - NED (North East Down) to LLA (Latitude Longitude Altitude) conversion for Python

Installation

pip install pyned2lla

Example use

import pyned2lla
import math

D2R = math.pi/180.0
R2D = 180.0/math.pi

wgs84 = pyned2lla.wgs84()

(lat0, lon0, alt0) = 47.992875, 7.853876, 281 # Schwabentor, Freiburg
(north, east, down) = 1650, 170, 20

(lat, lon, alt) = pyned2lla.ned2lla(lat0*D2R, lon0*D2R, alt0, north, east, down, wgs84)
print((lat*R2D, lon*R2D, alt)) # Institute of Biology I, Faculty of Biology, University of Freiburg

The above should print approximately (48.00771378931424, 7.8561542926911985, 261.21592491399497).

License

MIT license

Development

Develop locally

maturin develop

Publish a new release

Publishing new releases is performed automatically by Github CI when a new tag is pushed.

About

NED (North East Down) to LLA (Latitude Longitude Altitude) conversion for Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages