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. Similary, one can pass Telescope and Site objects to define the telescope and site characteristics, respectively.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cabaret-0.1.1.tar.gz
  • Upload date:
  • Size: 470.8 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.1.tar.gz
Algorithm Hash digest
SHA256 0c1ad307245a5691445d6d03b6abd2b8e2b2dbe8c6d5434888617fc5a9ea3054
MD5 b0e0953caaa05f82ee9fde448dbec6da
BLAKE2b-256 1f21c9000158a26c6b7831e5e29ddb3a610dcb4ceb6f66618069556b869941bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cabaret-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8378b9e2c27256df928352d87bca386e1a64e38318494156ce0d8fa53d8258
MD5 29ded9681019a9b00f5ece215800316a
BLAKE2b-256 390f7019f49c9e43c7388f98a80d6e16375c1fd4f2ce545a8b18c4c4d259ea44

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