Skip to main content

Simple tool to get altitude (elevation), azimuth and range between observer and object / pair of cordinates

Project description

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

$ pip install altazrange

Basic Usage

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

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

Project details


Download files

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

Source Distribution

AltAzRange-0.57.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file AltAzRange-0.57.tar.gz.

File metadata

  • Download URL: AltAzRange-0.57.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for AltAzRange-0.57.tar.gz
Algorithm Hash digest
SHA256 40829020334dd46ae41abddf804122d065d7d3feae5e89fe3c92fc452f273e92
MD5 87e90512edad6fab15cbbd41f2385a95
BLAKE2b-256 74d3ef4c4f531f811ae7d773ab8723c709076b9afd45214b70a1f288b749917e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page