xugrid.UgridDataArrayAccessor.rasterize_like#
- UgridDataArrayAccessor.rasterize_like(other: DataArray | Dataset) DataArray [source]#
Rasterize unstructured grid 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.DataArray