Skip to main content

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


Download files

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

Source Distribution

cabaret-0.4.0.tar.gz (494.9 kB view details)

Uploaded Source

Built Distribution

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

cabaret-0.4.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

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

Hashes for cabaret-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3fd682b8ddaae1268d936adc263a0e34528ce39192aa40150edec10722f61431
MD5 2f65728d03843446c0666211bca15cc5
BLAKE2b-256 7775b9bd9fac1b3d826dac28f86acd531111f4cad5da57ef4a4c70a986d4a5e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for cabaret-0.4.0.tar.gz:

Publisher: publish.yml on ppp-one/cabaret

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cabaret-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ceb5b3cdc81968aba232483e40a6776e5962626d5e2ebc3a0f4f206de02884b
MD5 f51fd95d55f9b52cbacaccec93612731
BLAKE2b-256 489ba398601d391587beeb9b4a500f725eedfc8ea581199eb9e65555c37c1763

See more details on using hashes here.

Provenance

The following attestation bundles were made for cabaret-0.4.0-py3-none-any.whl:

Publisher: publish.yml on ppp-one/cabaret

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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