Adding tolerance for nodata detection in raster