-
Notifications
You must be signed in to change notification settings - Fork 20
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
set_ndv
does not update nodatas in array
#286
Comments
I don't think it's a bug. Maybe we should clarify in the docstring, but looking at the code, it seems like the behavior of
This is exactly what is done in your example, i.e. the 255 values are masked, then unmasked. It also raises the broader question. With masked_arrays, the masked values are actually not being modified. If one runs |
set_mask
does not update nodatas in arrayset_ndv
does not update nodatas in array
Ok, after discussions, I changed my mind.
|
During
set_ndv
, the array is not updated with previous nodata.Steps to reproduce the behavior:
All the 255 no data values should have been updated to 254 by the
set_ndv(..., update_array=True)
, which is also the default parameter.The text was updated successfully, but these errors were encountered: