Convert raw images to fits
Project description
raw2fits
A Python package to convert camera raw images to astronomical fits files.
Installation
pip install raw2fits
Usage
To convert a raw image to a fits file.
from raw2fits.image import Image
img = Image(path='path/to/raw/image', debayer_method="VNG")
img.save_fits(image_type="LIGHT", path='path/to/save/fits/image')
where debayer_method
can be one of the following: "VNG", "Bilinear". We recommend using "VNG" for better results.
Comparsion between different debayer methods
The following images are the result of converting a raw image to a fits file using different debayer methods.
Debayer Method | Image |
---|---|
Bilinear | |
VNG | |
VNG (by Pixinsight) |
Debayer Method | Image |
---|---|
Bilinear | |
VNG | |
VNG (by Pixinsight) |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Acknowledgements
This extraction of the bayer image is based on the rawpy.
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
File details
Details for the file raw2fits-1.0.2.tar.gz
.
File metadata
- Download URL: raw2fits-1.0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb69c51dbf64072cfc3e615dd95551779d5c01e425d6d057b678b072cb7bc3b1 |
|
MD5 | e102c0c51378f1379be135b9e5bc5dc1 |
|
BLAKE2b-256 | c54f91ba209b77b87a70aac34e4e559b7f8b125cac14ff30c1827b9fd63ca9b2 |
File details
Details for the file raw2fits-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: raw2fits-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a2ca495644562fc3a98564a9ca7d6b3f95a2a4edbff489b96bb73d5aedf77d |
|
MD5 | 8c43c57c8240c3b4bf36f842e9c04bac |
|
BLAKE2b-256 | 747d99819d7ccc7914aaaad2755665984c8119f3ec90a98de5e2104e664c1d6f |