Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable FITS image compression by default #138

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Jan 24, 2024

Compression of floating point data using the GZIP_2 fits compression algorithm is not lossless. To avoid pitfalls with this algorithm, compression is disabled by default. Also expose the quantize_level keyword argument to enable adjustment of the compression algorithm, if compression is desired.

See the astropy FITS image documentation for further information: https://docs.astropy.org/en/stable/io/fits/api/images.html

Closes #135.

Compression of floating point data using the GZIP_2 fits compression algorithm
is *not* lossless.  To avoid pitfalls with this algorithm, compression is
disabled by default.  Also expose the `quantize_level` keyword argument to
enable adjustment of the compression algorithm, if compression is desired.

See the astropy FITS image documentation for further information:
https://docs.astropy.org/en/stable/io/fits/api/images.html

Closes #135.
@arahlin arahlin requested a review from Wei-Q January 24, 2024 18:14
@Wei-Q
Copy link

Wei-Q commented Jan 24, 2024

Thank you for making these changes, and they look great to me!

@arahlin arahlin self-assigned this Jan 24, 2024
@arahlin arahlin merged commit 7fd257c into master Jan 24, 2024
1 check passed
@arahlin arahlin deleted the fits_compression branch January 24, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GZIP_2 compression of a flat-sky map seems lossy in some cases
2 participants