xugrid.UgridDatasetAccessor.rasterize_like#
- UgridDatasetAccessor.rasterize_like(other: DataArray | Dataset) Dataset [source]#
Rasterize unstructured all face data on 2D unstructured grids by sampling on the x and y coordinates of
other
.- Parameters:
resolution (float) – Spacing in x and y.
other (Union[xr.DataArray, xr.Dataset]) – Object to take x and y coordinates from.
- Returns:
rasterized
- Return type:
xr.Dataset