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.

Documentation can be found at cabaret.readthedocs.io.

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()

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.1.tar.gz (501.2 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.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file cabaret-0.4.1.tar.gz.

File metadata

  • Download URL: cabaret-0.4.1.tar.gz
  • Upload date:
  • Size: 501.2 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.1.tar.gz
Algorithm Hash digest
SHA256 666c0bf73506558bbe8847e55927d44e01994648e7c88b7d6b8c4d1b06d11479
MD5 8306f393ca8b8f11d992ce77b9a25e9d
BLAKE2b-256 f53fc6029c1d539466d94ace13b370370f0cc441090b154152832d8621e7ab03

See more details on using hashes here.

Provenance

The following attestation bundles were made for cabaret-0.4.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: cabaret-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 27.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32a50cf39015a44cba21b1a1d895202a648bc6897f3d595d0f85091613d228ed
MD5 65dde1071065f02dc8c140a7355e5116
BLAKE2b-256 6a4ed62034024c4cb2e406292a2c687c7534c670e4395350eddc5304e8db8ecb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cabaret-0.4.1-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