Skip to content

Addition of return_esmpy_regrid_operator to regrids and regridc? #766

@mattjbr123

Description

@mattjbr123

Hiya,
I've noticed that between v3.13.1 and v3.14.0, when the regridding code was refactored as part of the dask implentation (#438), the behaviour of the return_operator kwarg to regrids and regridc changed. In v3.13.1 the cf.RegridOperator it returned could be used to access the ESMF.Regrid object via the regrid attribute. In v3.14.0 and beyond this is no longer the case, but a return_esmpy_regrid_operator kwarg has been added to the new regrid worker function which allows access to the ESMF.Regrid object. However this is not a kwarg available in regrids and regridc, which call regrid, so I would have to call regrid directly to access the ESMF.Regrid object, which is probably not recommended/ideal etc.

To my relatively untrained eye it looks like there should not be a problem adding the return_esmpy_regrid_operator kwarg to regrids and regridc and passing it to regrid, and am happy to put together a very simple PR to add this in if so, but you might be able to advise better!

More details on the issue this is causing here: unifhy-org/unifhy#98

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestregriddingRelating to regridding operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions