0 purchases
raw2fits 1.0.2
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
MIT
Acknowledgements
This extraction of the bayer image is based on the rawpy.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.