hydromt.gis.DataArray.raster.set_nodata#

gis.DataArray.raster.set_nodata(nodata=None)#

Set the nodata value as CF compliant attribute of the DataArray.

Parameters:
  • nodata (float, integer) – Nodata value for the DataArray. If the nodata property and argument are both None, the _FillValue attribute will be removed.

  • logger – The logger to use.