Skip to main content

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

MIT

Acknowledgements

This extraction of the bayer image is based on the rawpy.

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

raw2fits-1.0.2.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

raw2fits-1.0.2-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page