-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cutout2D partial behavior with mask #7659
Comments
@mwcraig or @MSeifert04 ? |
Good question. I don't think we explicitly support masked arrays there. Maybe accidentally but definitely not on purpose (there are no test cases for masked data and no docs on masked data). It would be really nice if we could support masked arrays (if we can support them relatively easily). But that requires someone who wants to step up and completely checks the masked-array compatibility for |
Ok, thanks @MSeifert04. I suppose for now the best plan would be to do the cutout and then use one of the I'll read through the docs and see if there isn't a good place to add some kind of sentence or note that mentions that masks are not explicitly supported yet. And maybe if I magically find time I'll take a stab at looking over the related code. I will leave open in case it's helpful but feel free to close. Cheers! |
@wtgee I don't think we should close this. I think there could be lots of use-cases for masked array cutouts. It's just that it's not a bug. However it's a totally fine feature-request (at least if one interprets the title and original post that way). :) |
Hello, I'm not sure if this is expected behavior but it threw me for a bit.
astropy.nddata.Cutout2D
works fine for data that is masked unless you are usingmode="partial"
and there is an overlap error, in which cases it seems to ignore the mask. Trivial example:It's the last case that seems odd to me. If I've masked a bad pixel in there I would expect that to stay masked even with the
fill_value
.Is this expected behavior?
The text was updated successfully, but these errors were encountered: