hydromt.gis.DataArray.raster.reproject_like#

gis.DataArray.raster.reproject_like(other, method='nearest')#

Reproject a object to match the grid of other.

Parameters:
  • other (xarray.DataArray or Dataset) – DataArray of the target resolution and projection.

  • method (str, optional) – See reproject() for existing methods, by default ‘nearest’.

Returns:

da – Reprojected object.

Return type:

xarray.DataArray