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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b724382f8b9ca58b3e6bca973e0d7d545ff13c2c9ac39ceea8530f7066f9aa6
|
|
| MD5 |
ed9ac7f2df20ed8d0e828ca1b9af5975
|
|
| BLAKE2b-256 |
84329409d87ddeb58ac8017782991a3fc3b90ed6f3ab20fec23d83e3533c721d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f4b07a619bee15146fc939f6ccd742a1cb31e048dfa07c2fbc15e4853b0af1
|
|
| MD5 |
e391aa439cfff2f3e986fc4f05e791eb
|
|
| BLAKE2b-256 |
a0128ab3a5e042ce49e596a0d30a3f08ad7ff0abb2b2636ba51623b588ffb71d
|