hydromt.raster.full#

hydromt.raster.full(coords, nodata=nan, dtype=<class 'numpy.float32'>, name=None, attrs=None, crs=None, lazy=False, shape=None, dims=None) DataArray[source]#

Return a full DataArray based on a geospatial coords dictionary.

Parameters:
  • coords (sequence or dict of array_like, optional) – Coordinates (tick labels) to use for indexing along each dimension (max 3). The coordinate sequence should be (dim0, y, x) of which the first is optional.

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

  • dtype (numpy.dtype, optional) – Data type

  • name (str, optional) – DataArray name

  • attrs (dict, optional) – additional attributes

  • crs (int, dict, or str, optional) – Coordinate Reference System. Accepts EPSG codes (int or str); proj (str or dict)

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

  • shape (tuple, optional) – Length along (dim0, y, x) dimensions, of which the first is optional.

  • dims (tuple, optional) – Name(s) of the data dimension(s).

Returns:

da – Filled DataArray

Return type:

DataArray