No project description provided
Project description
cabaret
cabaret is a Python package to simulate astronomical images using the GAIA catalog of stars.
Installation
You can install cabaret in a Python (>=3.11) environment with
pip install cabaret
or from a local clone
git clone https://github.com/ppp-one/cabaret
pip install -e cabaret
You can test the package has been properly installed with
python -c "import cabaret"
Example
Basic image
To generate an image from RA/DEC coordinates, run:
import cabaret
image = cabaret.Observatory().generate_image(
ra=12.33230, # right ascension in degrees
dec=30.4343, # declination in degrees
exp_time=10, # exposure time in seconds
)
To display the image (matplotlib required here):
import matplotlib.pyplot as plt
from cabaret.plot import plot_image
plot_image(image)
plt.show()
Documentation
Explore the full documentation, API reference, and advanced usage examples at cabaret.readthedocs.io.
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 cabaret-0.4.0.tar.gz.
File metadata
- Download URL: cabaret-0.4.0.tar.gz
- Upload date:
- Size: 494.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fd682b8ddaae1268d936adc263a0e34528ce39192aa40150edec10722f61431
|
|
| MD5 |
2f65728d03843446c0666211bca15cc5
|
|
| BLAKE2b-256 |
7775b9bd9fac1b3d826dac28f86acd531111f4cad5da57ef4a4c70a986d4a5e7
|
Provenance
The following attestation bundles were made for cabaret-0.4.0.tar.gz:
Publisher:
publish.yml on ppp-one/cabaret
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cabaret-0.4.0.tar.gz -
Subject digest:
3fd682b8ddaae1268d936adc263a0e34528ce39192aa40150edec10722f61431 - Sigstore transparency entry: 563443947
- Sigstore integration time:
-
Permalink:
ppp-one/cabaret@cc291b632565888d28d559d02c5cf063c53f1036 -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/ppp-one
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc291b632565888d28d559d02c5cf063c53f1036 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cabaret-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cabaret-0.4.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ceb5b3cdc81968aba232483e40a6776e5962626d5e2ebc3a0f4f206de02884b
|
|
| MD5 |
f51fd95d55f9b52cbacaccec93612731
|
|
| BLAKE2b-256 |
489ba398601d391587beeb9b4a500f725eedfc8ea581199eb9e65555c37c1763
|
Provenance
The following attestation bundles were made for cabaret-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on ppp-one/cabaret
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cabaret-0.4.0-py3-none-any.whl -
Subject digest:
7ceb5b3cdc81968aba232483e40a6776e5962626d5e2ebc3a0f4f206de02884b - Sigstore transparency entry: 563443964
- Sigstore integration time:
-
Permalink:
ppp-one/cabaret@cc291b632565888d28d559d02c5cf063c53f1036 -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/ppp-one
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc291b632565888d28d559d02c5cf063c53f1036 -
Trigger Event:
push
-
Statement type: