hydromt.gis.raster.full_like#

hydromt.gis.raster.full_like(other: DataArray, *, nodata: float = None, lazy: bool = False) DataArray[source]#

Return a full object with the same grid and geospatial attributes as other.

Parameters:
  • other (DataArray) – DataArray from which coordinates and attributes are taken

  • nodata (float, int, optional) – Fill value for new DataArray, defaults to other.nodata or if not set np.nan

  • lazy (bool, optional) – If True return DataArray with a dask rather than numpy array.

Returns:

da – Filled DataArray

Return type:

DataArray