Skip to main content

Given an earth location, plot lines of constant hour angle and declination on an azimuth-elevation grid

Project description

visky

A library to help generate VIsualize the celestial SKY. Given an earth location, plot lines of constant hour angle and declination on an azimuth-elevation grid.

An example output for the Canadian Dominion Radio Astrophysical Observatories 26 m telescope location. example-from-DRAO-26m

An example output for the Australian Telescope National Facilities Parkes telescope location. example-from-parkes

Note: there are plotting artifacts for some locations. Pull requests are welcome!

Installation

It is available on pip. Otherwise you can clone this repo and figure it out yourself - this library is a uv project.

pip install visky

How to use

In it's simplest form,

from visky import hadec_on_azel_grid, EarthLocation
hadec_on_azel_grid(EarthLocation.of_site('parkes')).show()

But you can also do more complex things, like set custom Earth locations, and edit the returned plotly figure.

from visky import hadec_on_azel_grid, EarthLocation

# EarthLocation is a thin wrapper around astropy.coordinates.EarthLocation and can be used in a few ways:
location = EarthLocation.of_site('parkes')
location = EarthLocation.from_geodetic(lat = 49.32102306, lon = -119.61898028, height = 546.566)

figure = hadec_on_azel_grid(location)  # this is a plotly figure
figure.show()  # will plot it using the default plotly backend
figure.update_layout(title="My plot title")
figure.update_layout(width=1754, height=1240, margin=dict(l=60,r=40, b=60,t=60))  # good for A4 paper
figures.write_image('myplot.png')

Credit

Tim Robishaw had generated a plot like this that I referenced a lot, and I ripped many elements from it.

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

visky-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visky-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file visky-0.1.0.tar.gz.

File metadata

  • Download URL: visky-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for visky-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03c460c99b39887846f6db583370f1e8892b41f2ed78acac4c656f54a32684fe
MD5 6a576caf8717390db5db1704f6ae213b
BLAKE2b-256 c63dd06528536e037b31bc4a873f7d8a6e7a99c22c17ffd2726c9bbb5babf0e8

See more details on using hashes here.

File details

Details for the file visky-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: visky-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for visky-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9bbe891ba71ca2f0ac89d52d745ac8f686da80276097a7459a9015d1724370c
MD5 c0c0410411d382a1304a23ede70affab
BLAKE2b-256 4b90ba8ed902389b9b5788f2177870cfc2a9752b211670dddd79397138e45d65

See more details on using hashes here.

Supported by

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