Replies: 8 comments
|
Isn’t the current return message from xr self-explanatory for the problem? |
|
I wouldn't say so. At first glance I would think it means that 'nlat' between ValueError: Coordinates do not match along dimension 'nlat' |
|
this is true: here climpred did nothing to the dimension |
|
if we find matching coords, we could show those as |
|
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. |
|
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 |
|
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 |
|
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. |
Uh oh!
There was an error while loading. Please reload this page.
This has been an issue on my mind for awhile. But we need to have something in
checks.pythat 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
climpredis broken during alignment, like we're losing spatial cells. In reality it's just that one has a coordinate fornlatand one doesn't.All reactions