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.2.tar.gz (471.1 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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cabaret-0.1.2.tar.gz
  • Upload date:
  • Size: 471.1 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.2.tar.gz
Algorithm Hash digest
SHA256 2054330c55274eb03dc052775644ed03530985fa452a4225de63da179e30ed5a
MD5 707122d18a619d02a3d12ab1dfb8ca4a
BLAKE2b-256 4c4670e7d3e66bb5d60915fca9fa58ac0c2a6fe486be75009dbb236aaed59eea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cabaret-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00cabc8152b304bc748e021b33ee6fd95d76634b287e21dbec01daed9178d64d
MD5 315150928f3e52a0837c206a344987dc
BLAKE2b-256 71a084797be26627402c554a7689184f9ba4d3b631ad15149bf0d72ffd5dba63

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