Open
Description
In GitLab by @tomvansteijn on Feb 11, 2021, 09:45
When opening an integer raster file (gtiff), the crs and nodata value are properly set in the DataArray attrs dict. However, when opening another raster file, a float raster, the attrs remain empty.
Not sure if the dtype makes the difference. When the attrs are not set, the "dmin" and "dmax" properties are not calculated correctly as the raster nodata value is not taken into account. This shows in the colormap in the iMOD viewer.
Attached a raster file for which the attrs remain empty when calling rasterio.open.