-
When I add Expected behavior and actual behavior.I need to distinguish pixels that have valid value and pixels that are out of bounds/nodata. Steps to reproduce the problem.Please look at joined example . Output on my computer:
Environment Information
Installation MethodUbuntu 20.04 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@nmoreaud for the first file |
Beta Was this translation helpful? Give feedback.
sample's default, for datasets that are all valid (no mask, no nodata value), is to return 0 outside the extent of the dataset.
I've just made a small change to rasterio such that your program produces this:
For bordeaux.bil. the first
[--] [ True]
means that the value is outside of the dataset bounds and thus masked. This is what sample intends and advertises and there was a bug.