Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
58 stars 8 forks source link

Misleading error when using wrong data type in regridder #168

Open betsyromero opened 10 months ago

betsyromero commented 10 months ago

When using a UgridDataSet instead of a UgridDataArray in the regridder, the error is misleading:

ValueError: object does not contain regridder source dimensions: {'y', 'x'}

it should indicate the real source of the error (using the wrong data type)