hydromt.raster.full#
- hydromt.raster.full(coords, nodata=nan, dtype=<class 'numpy.float32'>, name=None, attrs={}, crs=None, lazy=False)[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.
- Returns:
da – Filled DataArray
- Return type:
DataArray