hydromt.raster.full_from_transform#

hydromt.raster.full_from_transform(transform, shape, nodata=nan, dtype=<class 'numpy.float32'>, name=None, attrs={}, crs=None, lazy=False)[source]#

Return a full DataArray based on a geospatial transform and shape. See full() for all options.

Parameters:
  • transform (affine transform) – Two dimensional affine transform for 2D linear mapping

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

Returns:

da – Filled DataArray

Return type:

DataArray