hydromt.DataArray.raster.set_nodata#
- DataArray.raster.set_nodata(nodata=None, logger=<Logger hydromt.raster (WARNING)>)#
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.