We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef312a commit 373bd2aCopy full SHA for 373bd2a
src/xarray_regrid/regrid.py
@@ -292,7 +292,7 @@ def validate_input(
292
time_dim: str | None,
293
) -> xr.Dataset:
294
if time_dim is not None and time_dim in ds_target_grid.coords:
295
- ds_target_grid = ds_target_grid.isel(time=0).reset_coords()
+ ds_target_grid = ds_target_grid.isel({time_dim: 0}).reset_coords()
296
297
if len(set(data.dims).intersection(set(ds_target_grid.dims))) == 0:
298
msg = (
0 commit comments