When sampling a raster and returning the sampled result, if the value is the "nodata" value, then instead of returning it, return NaN instead. This is because the user doesn't have access to the original TIFF file and cannot unambiguously know if a value is the "nodata" value or not.
When sampling a raster and returning the sampled result, if the value is the "nodata" value, then instead of returning it, return NaN instead. This is because the user doesn't have access to the original TIFF file and cannot unambiguously know if a value is the "nodata" value or not.