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
The nearest regridding scheme in ESMF skips masked points. Therefore, this scheme cannot be used to regrid the mask and special treatment is needed. Example of the issue with the current code:
See here (and click the Regrid_Iris_Esmf_Nearest tab) for an overview of which CMIP6 models currently cannot be regridded using the ESMFNearest scheme. That is approximately 40% of the 46 models, so quite a large fraction, making the ESMFNearest regridding scheme almost unusable with CMIP6 ocean data. This is regardless of whether use_src_mask=True (issue here occurs) or use_src_mask=False (regridding fails because the bounds are discontiguous, this would be solved by #276).
Regarding our discussion at the @SciTools/peloton today: I checked the ocean component of a few of the Earth System Models that failed to regrid and the issue does not seem limited to ORCA grids.
@bouweandelaWould there still be a need for #369 if I were to extend the work done by #276 to go beyond simply allowing boundless coordinates but ignoring bounds, and therefore there discontiguities, entirely when doing Nearest (and perhaps also Bilinear) regridding? This ought to mean that the use_src_mask argument is no longer necessary in order to get regridding to work for coords with discontiguities. This should give you the behaviour you want by default without removing the old behaviour in cases where that might be appropriate. It may make sense to add a check_for_discontiguities argument when creating such regridders.
Edit: on further inspecition, it looks like Nearest and Bilinear already do ignore discontiguous bounds which are present on the cube. Do you get the desired behaviour when repeating the above code while removing the argument use_src_mask=mask?
The
nearest
regridding scheme in ESMF skips masked points. Therefore, this scheme cannot be used to regrid the mask and special treatment is needed. Example of the issue with the current code:results in the following plot, note that the mask is missing:
while I would expect a plot that looks like this:
The file in the example can be downloaded from one of the following URLs:
The text was updated successfully, but these errors were encountered: