hydromt.DataArray.raster.reindex2d#
- DataArray.raster.reindex2d(index, dst_nodata=None)#
Return reprojected DataArray object based on simple reindexing using linear indices in
index
, which can be calculated withnearest_index()
.This is typically used to downscale time series data.
- Parameters:
index (xarray.DataArray of intp) – DataArray with flat indices of source DataArray
- Returns:
da_reproject – The reindexed DataArray.
- Return type: