@@ -13491,6 +13491,7 @@ def regrids(
13491
13491
inplace=False,
13492
13492
i=False,
13493
13493
_compute_field_mass=None,
13494
+ return_esmpy_regrid_operator=False,
13494
13495
):
13495
13496
"""Regrid the field to a new latitude and longitude grid.
13496
13497
@@ -13727,6 +13728,10 @@ def regrids(
13727
13728
.. versionadded:: 3.16.0
13728
13729
13729
13730
{{inplace: `bool`, optional}}
13731
+
13732
+ {{return_esmpy_regrid_operator: `bool`, optional}}
13733
+
13734
+ .. versionadded:: 3.16.2
13730
13735
13731
13736
axis_order: sequence, optional
13732
13737
Deprecated at version 3.14.0.
@@ -13744,7 +13749,8 @@ def regrids(
13744
13749
`Field` or `None` or `RegridOperator`
13745
13750
The regridded field construct; or `None` if the
13746
13751
operation was in-place; or the regridding operator if
13747
- *return_operator* is True.
13752
+ *return_operator* is True; or the esmpy.Regrid operator
13753
+ object if *return_esmpy_regrid_operator* is True.
13748
13754
13749
13755
**Examples**
13750
13756
@@ -13819,6 +13825,7 @@ def regrids(
13819
13825
dst_z=dst_z,
13820
13826
z=z,
13821
13827
ln_z=ln_z,
13828
+ return_esmpy_regrid_operator=return_esmpy_regrid_operator,
13822
13829
inplace=inplace,
13823
13830
)
13824
13831
@@ -13845,6 +13852,7 @@ def regridc(
13845
13852
inplace=False,
13846
13853
i=False,
13847
13854
_compute_field_mass=None,
13855
+ return_esmpy_regrid_operator=False,
13848
13856
):
13849
13857
"""Regrid the field to a new Cartesian grid.
13850
13858
@@ -14016,6 +14024,10 @@ def regridc(
14016
14024
.. versionadded:: 3.16.2
14017
14025
14018
14026
{{inplace: `bool`, optional}}
14027
+
14028
+ {{return_esmpy_regrid_operator: `bool`, optional}}
14029
+
14030
+ .. versionadded:: 3.16.2
14019
14031
14020
14032
axis_order: sequence, optional
14021
14033
Deprecated at version 3.14.0.
@@ -14033,7 +14045,8 @@ def regridc(
14033
14045
`Field` or `None` or `RegridOperator`
14034
14046
The regridded field construct; or `None` if the
14035
14047
operation was in-place; or the regridding operator if
14036
- *return_operator* is True.
14048
+ *return_operator* is True; or the esmpy.Regrid operator
14049
+ object if *return_esmpy_regrid_operator* is True.
14037
14050
14038
14051
**Examples**
14039
14052
@@ -14107,6 +14120,7 @@ def regridc(
14107
14120
dst_z=dst_z,
14108
14121
z=z,
14109
14122
ln_z=ln_z,
14123
+ return_esmpy_regrid_operator=return_esmpy_regrid_operator,
14110
14124
inplace=inplace,
14111
14125
)
14112
14126
0 commit comments