SciTools / iris-esmf-regrid

A collection of structured and unstructured ESMF regridding schemes for Iris.
https://iris-esmf-regrid.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Add is_compatible method #181

Closed stephenworsley closed 1 year ago

stephenworsley commented 2 years ago

In the case where there are cubes with multiple types of grid/mesh and multiple regridders, it would be good to have a quick way to check if a particular cube is compatible with a particular regridder. This could be done with a is_compatible method which would take a cube as an argument and return True when that cube could be appropriately regrid by the regridder. It is also possible that we could refine the equality checks to be more performant and focused on the information relevant to each regridder e.g. only checking node lat/lon and face_node_connectivity for area weighted regridders.

github-actions[bot] commented 2 years ago

@SciTools-incubator/esmf-regrid-devs This issue is stale due to a lack of activity in the last 90 days. Remove stale label or comment, otherwise this issue will close automatically in 7 days time.

stephenworsley commented 2 years ago

This could also be part of decoupling compatibility checking from the stricter iris approach. It would be useful to do this since when saving and loading a regridder, certain aspects of the attached grid/mesh may change, notably the var_name and the iunderlying values of any masked points in attached data. Currently these may cause regridders to error innapropriately.

github-actions[bot] commented 1 year ago

@SciTools-incubator/esmf-regrid-devs This issue is stale due to a lack of activity in the last 90 days. Remove stale label or comment, otherwise this issue will close automatically in 7 days time.

github-actions[bot] commented 1 year ago

@SciTools-incubator/esmf-regrid-devs This stale issue has been automatically closed due to no community activity