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.
An example output for the Australian Telescope National Facilities Parkes telescope location.
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")
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visky-0.0.1.tar.gz.
File metadata
- Download URL: visky-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e60664381b6445f1e220e55b5dee2c6bd4e542f55c7feb9570a22d6a386efea3
|
|
| MD5 |
e71bbc743e53d5f081b10cabeb438913
|
|
| BLAKE2b-256 |
8d32c9fb04dfef763f004a9da3896d8277689c876eb1d5152fc4a3659e1a749b
|
File details
Details for the file visky-0.0.1-py3-none-any.whl.
File metadata
- Download URL: visky-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2ce586796e6792e50ebe2e2bb364b3ed74b8be3fc729683c926ce3bd7d63212
|
|
| MD5 |
31db44551d8a252782aa8665907013b2
|
|
| BLAKE2b-256 |
b31ef8535838a16e6eb34dda3aadb5e389eb9491f575184d6bfd84fdeaf74156
|