AltAzRange-0.57
توضیحات
Simple tool to get altitude (elevation), azimuth and range between observer and object / pair of cordinates
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | AltAzRange-0.57 |
| نام | AltAzRange |
| نسخه کتابخانه | 0.57 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | SQ3TLE |
| ایمیل نویسنده | sq3tle@gmail.com |
| آدرس صفحه اصلی | https://github.com/sq3tle/altazrange |
| آدرس اینترنتی | https://pypi.org/project/AltAzRange/ |
| مجوز | MIT |
# AltAzRange - Calculate altitude, azimuth, distance from gps cords
Simple tool to calculate altitude (elevation), azimuth and range between observer and object or pair of coordinates.
**Useful for eg. finding where to aim your antenna - no matter if it's drone, satellite, high altitude balloon.**
## Instalation
```sh
$ pip install altazrange
```
## Basic Usage
```python
from AltAzRange import AltAzimuthRange
satellite = AltAzimuthRange()
satellite.observer(51.77021, 18.061959, 115)
satellite.target(51.681562, 17.778988, 43152)
satellite.calculate()
{'azimuth': 245.49, 'elevation': 86.86, 'distance': 430555.14}
```
### Usage for multiple objects with single observer location
If you want to use same observer for multiple objects its recommended to use default_observer
```python
from AltAzRange import AltAzimuthRange
AltAzimuthRange.default_observer(51.773931, 18.061959, 50)
satellite_1 = AltAzimuthRange()
high_alt_balloon = AltAzimuthRange()
satellite_1.target(51.681562, 17.778988, 43152)
high_alt_balloon.target(52.30, 21.37, 190000)
satellite_1.calculate()
{'azimuth': 245.49, 'elevation': 86.86, 'distance': 430555.14}
high_alt_balloon.calculate()
{'azimuth': 74.1, 'elevation': 37.55, 'distance': 304391.38}
```
Default observer can be overwritten using observer method.
**Based on javascript solution by [cosinekitty](https://github.com/cosinekitty/geocalc)**
نحوه نصب
نصب پکیج whl AltAzRange-0.57:
pip install AltAzRange-0.57.whl
نصب پکیج tar.gz AltAzRange-0.57:
pip install AltAzRange-0.57.tar.gz