Open malininae opened 1 year ago
In essence, this seems to show that the longitudes don't have bounds, which is a problem for non-regular grids. Can you confirm that longitudes (and likely then also latitudes) are boundless in the input file?
Side note: If you use triple backticks (``) to delineate code blocks, they will show up as real blocks with better formatting, compared with the simple backtick (
) that creates inline formatting and doesn't work well for multiline blocks.
@zklaus Indeed, I double checked and the OSI-450-Xh cubes seem to not have bounds around longitude
an latitude
coordinates. The issue is that cb.coord('longitude').guess_bounds()
doesn't work, because the dimension is non-monotonic. What do you think would be the best way? Change CMORizer?
@zklaus Indeed, I double checked and the OSI-450-Xh cubes seem to not have bounds around
longitude
anlatitude
coordinates. The issue is thatcb.coord('longitude').guess_bounds()
doesn't work, because the dimension is non-monotonic. What do you think would be the best way? Change CMORizer?
yep, in principle - basically reproduce the logic and functionality behind guess_bounds()
but for non-monotonic points - I think @schlunma did this once for some crazy data?
guess_bounds
only works for 1D data; I guess your lat/lon are 2D in this case.
We have a fix that works for 2D lat/lon here:
But since I am no expert on this at all I am not sure if this works in this case or is a sensible thing to do.
cheers, Manu! I reckon @zklaus is more of a 2D man than I am myself :grin:
@valeriupredoi, @schlunma cool, thanks! I never wrote fixes before, so would need some advice, what would be better, update the CMORizer or make/apply a fix?
For observational datasets we usually update the CMORizer :+1:
Hey folks,
as discussed during the November meeting I tried re-gridding the
OSI-450-nh
dataset onto regular 1x1 grid, but I get an error message with that.The
OSI-450-nh
is the file I downloaded from Levante, so it was a pre-cmorized for me version. I was wondering how to deal with that? Is it a known issue? Does the dataset need to be re-cmorized? Any help is highly appreciated. The recipe and themain_log_debug.txt
are attached.recipe_test_tripolar_regrid.yml.txt main_log_debug.txt