-
Notifications
You must be signed in to change notification settings - Fork 12
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
Reproject replaces 0 with -1 if nodata is not set #172
Comments
Hi Simon.
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a custom Landsat cloud mask based on QA band with values 0 and 1 and a Landsat panchromatic band. When I try to match cloud mask to a resolution of a panchromatic band with
odc.reproject
, 0's in a mask are replaced with -1's.But, for example, if we set a nodata in
mask
, or passdst_nodata=-1
arg, then 0's are not replaced.Also, it happens only if data is integer, and everything works correctly if data is float.
P.S. Here is also a notebook with minimum examples that shows the cases when this bug occurs and when it does not.
https://colab.research.google.com/drive/1MPoYkNOsBAZ6CBOSitYxtR1mhwn1QMU5?usp=sharing
The text was updated successfully, but these errors were encountered: