Open soxofaan opened 4 years ago
Thing is that the result is correct when you actually apply the mask. So I'm thinking that this occurs when we stitch the data into a geotiff. Binary data is a bit of a special case, so that might be the problem.
probably happening here as well: https://discuss.eodc.eu/t/unexpected-results-using-datacube-apply/447
reported on CDSE forum as well: https://helpcenter.dataspace.copernicus.eu/hc/en-gb/community/posts/17324746458397-Masking-problem
when downloading a binary (mask) image, the result has a strange ripple effect along horizontal dimension.
example: top image shows a scene classification layer, bottom image is binary mask by picking class 2:![Screenshot from 2019-12-10 14-21-30](https://user-images.githubusercontent.com/44946/70533077-950dc100-1b58-11ea-8e23-e8eeef481b5a.png)
full notebook: https://gist.github.com/soxofaan/30590718a6443724f25f97b1da582581