Replies: 8 comments
-
Isn’t the current return message from xr self-explanatory for the problem? |
Beta Was this translation helpful? Give feedback.
-
I wouldn't say so. At first glance I would think it means that 'nlat' between ValueError: Coordinates do not match along dimension 'nlat' |
Beta Was this translation helpful? Give feedback.
-
this is true: here climpred did nothing to the dimension |
Beta Was this translation helpful? Give feedback.
-
if we find matching coords, we could show those as |
Beta Was this translation helpful? Give feedback.
-
Agreed. Maybe upon instantiating the object we also just add coords for all dims that exist on other objects so we don't have to worry about that error. |
Beta Was this translation helpful? Give feedback.
-
maybe we can just throw a warning in the case of coords (which are also dimensions) mismatch. singular coords like member_id='r1...' would be safe to ignore |
Beta Was this translation helpful? Give feedback.
-
Or we don’t do this coords checking (only do it for time to check calendar) because then we could use xesmf regridding to regrid different datasets to 1x1 or 5x5 der grids which then should match |
Beta Was this translation helpful? Give feedback.
-
That's a good point regarding people wanting to regrid. Maybe just throw a warning. Whenever you add a dataset, check the union of coords and warn if they don't match. |
Beta Was this translation helpful? Give feedback.
-
This has been an issue on my mind for awhile. But we need to have something in
checks.py
that acts as a decorator to check that the input Datasets/DataArrays being compared have the same coordinate labeling (outside of time).For instance,
This returns
I've encountered this a lot when something I'm comparing to drops coords along the way or doesn't have them to begin with. And it makes you think something in
climpred
is broken during alignment, like we're losing spatial cells. In reality it's just that one has a coordinate fornlat
and one doesn't.Beta Was this translation helpful? Give feedback.
All reactions