NCAS-CMS / cf-python

A CF-compliant Earth Science data analysis library
http://ncas-cms.github.io/cf-python
MIT License
119 stars 19 forks source link

Added return_esmpy_regrid_operator to regrids and regridc #768

Closed mattjbr123 closed 4 months ago

mattjbr123 commented 4 months ago

Fixes #766

Added return_esmpy_regrid_operator kwargs to field/regrids and field/regridc, so that users wanting to make use of the functionality offered by it can do so via regrids and regridc, without having to call the regrid worker function directly.

This is possibly my 2nd ever PR, so if I've done something stupid, please forgive me... xD For example, see #767

mattjbr123 commented 4 months ago

How's this? https://github.com/NCAS-CMS/cf-python/pull/768/commits/f9bb52f23503c24dc0b350a575d8e69a66912b70