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

DM-15613: fix BZERO for unsigned integer images and rarely write BLANK #391

Merged
merged 6 commits into from Sep 7, 2018

Conversation

TallJimbo
Copy link
Member

No description provided.

Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about removing ZBLANK. Let's discuss on the ticket.

This matches the value used and recognized by both native CFITSIO
and astropy.io.fits.
BLANK is used to represent missing values in integer images only
(NaN is always used for floating point).  But our in-memory integer
images can never have missing values, so the only place we need
BLANK is when quantizing (for compression) a floating-point image
into an integer image.

Because ZBLANK is what BLANK should be after decompression, we should
never write it.
ndarray::allocate does not guarantee this.
@TallJimbo TallJimbo merged commit e21719b into master Sep 7, 2018
@TallJimbo TallJimbo deleted the tickets/DM-15613 branch September 7, 2018 19:00
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.

None yet

2 participants