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 and a field of vue specified in degrees:

import cabaret

ra, dec = 12.3323, 30.4343 # in degrees
exposure_time = 10 # in seconds

image = cabaret.generate_image(ra, dec, exposure_time)

and to display the image (matplotlib required here):

import matplotlib.pyplot as plt

plt.imshow(image)

Using the camera characteristics

To adjust the physical characteristics of the camera, you can define and pass a Camera object

import cabaret
from cabaret import Camera

camera = Camera(read_noise=10, gain=1)

ra, dec = 12.3323, 30.4343 # in degrees
exposure_time = 10 # in seconds

image = cabaret.generate_image(ra, dec, exposure_time, camera=camera)

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.1.0.tar.gz (470.4 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.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cabaret-0.1.0.tar.gz
  • Upload date:
  • Size: 470.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for cabaret-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a64796a6746997d99e9af78c238f0a40bdab651cfb9e7dd4c7c302224bf2fff3
MD5 96900a1aa08b69895a775d39783e524a
BLAKE2b-256 3ebd279ad11ffa80aa5bca94c335236f6992beab49a0dd4f8bf6340458270732

See more details on using hashes here.

File details

Details for the file cabaret-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cabaret-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for cabaret-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 059e57d1cbb6930a83fab44d5eeb49232c840b68f1601c06421b6b95a675cb6e
MD5 5160c87c8135228718586d7852b849f7
BLAKE2b-256 738c0e5f5d64ff9d28cee52a3f4d2f0716008ac373d95cfaee11000bb2febb9c

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