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
ordict
ofarray_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.nandtype (
numpy.dtype
, optional) – Data typename (
str
, optional) – DataArray nameattrs (
dict
, optional) – additional attributescrs (
int
,dict
, orstr
, 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