You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Too narrow types; regridding functions can also take xr.DataArray types as argument #64
Thanks for reporting this! I think target grid can indeed be a DataArray, however I should test it properly before modifying this.
The reason I typed it as xr.Dataset, is because a dataset can have coordinates and dimensions, without having any variables associated with it. That's why Grid.create_regridding_dataset returns a dataset.
Activity
BSchilperoort commentedon Jan 28, 2026
Thanks for reporting this! I think target grid can indeed be a DataArray, however I should test it properly before modifying this.
The reason I typed it as xr.Dataset, is because a dataset can have coordinates and dimensions, without having any variables associated with it. That's why
Grid.create_regridding_datasetreturns a dataset.