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.9) 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.0.6.tar.gz (470.0 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.0.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cabaret-0.0.6.tar.gz
  • Upload date:
  • Size: 470.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for cabaret-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0b724382f8b9ca58b3e6bca973e0d7d545ff13c2c9ac39ceea8530f7066f9aa6
MD5 ed9ac7f2df20ed8d0e828ca1b9af5975
BLAKE2b-256 84329409d87ddeb58ac8017782991a3fc3b90ed6f3ab20fec23d83e3533c721d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cabaret-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for cabaret-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f4b07a619bee15146fc939f6ccd742a1cb31e048dfa07c2fbc15e4853b0af1
MD5 e391aa439cfff2f3e986fc4f05e791eb
BLAKE2b-256 a0128ab3a5e042ce49e596a0d30a3f08ad7ff0abb2b2636ba51623b588ffb71d

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