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

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

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")
figures.write_image('myplot.png')

To do

  • Implement plotting of HA/Dec lines on Az/El grid
  • Add interactive features to the plot
  • Support southern hemisphere locations (SCP instead of NCP)
  • Tidy up plot artifacts at various earth locations (lines suddenly veering off or disappearing)
  • Add more documentation and usage examples
  • Package as a pip-installable module
  • Tidy up inline annotations on the plot (works well in north sky, but equator and south are funky)

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.0.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.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visky-0.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 b9d71e8bf15a023a8a01a5272b6824ec026562098442301d7aa7d3a8935915c1
MD5 a88b5a467fe9e7e7ef089b2fb33f705e
BLAKE2b-256 bb4ccc6f268e95a74bfd97f866c1c31066b916fc187a7842dc457d968beba781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: visky-0.0.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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0b21eda4d80adcd5794f6e2bc94b26e2dbed3dbfdaf16ba695fe3c458fab35
MD5 cc19dad3d932b4a3f2ce0ca1e24410bb
BLAKE2b-256 0303d2cdc98a9d284544e16523cac230127d556a02f9a4fc805d29f1c02d5ae7

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