Metadata-Version: 2.4
Name: pyned2lla
Version: 0.1.1
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Summary: NED (North East Down) to LLA (Latitude Longitude Altitude) conversion for Python
Author: Andrew Straw <strawman@astraw.com>
Author-email: Andrew Straw <strawman@astraw.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/strawlab/pyned2lla

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

This is a packages some coordinate transforms from the
[`coord_transforms`](https://crates.io/crates/coord_transforms) rust crate to be
used in Python.

## Installation

`pip install pyned2lla`

## Example use

```python
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

```bash
maturin develop
```

### Publish a new release

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

