@@ -380,8 +380,8 @@ def regrid(
380
380
381
381
if ln_z is None and src_z is not None :
382
382
raise ValueError (
383
- "When 'z', 'src_z', ' or 'dst_z' have been set, "
384
- "'ln_z' can not be None."
383
+ "When 'z', 'src_z', or 'dst_z' have been set, "
384
+ "'ln_z' cannot be None."
385
385
)
386
386
387
387
ln_z = bool (ln_z )
@@ -837,7 +837,7 @@ def spherical_coords_to_domain(
837
837
axis_sizes = [coords ["lat" ].size , coords ["lon" ].size ]
838
838
if coords ["lon" ].ndim != 1 :
839
839
raise ValueError (
840
- "When 'dst' is a sequence containing latitude and "
840
+ "When 'dst' is a sequence containing latitude and "
841
841
"longitude coordinate constructs, they must have the "
842
842
f"same shape. Got: { dst !r} "
843
843
)
@@ -1427,7 +1427,6 @@ def spherical_grid(
1427
1427
)
1428
1428
1429
1429
set_grid_type (grid )
1430
- # print(grid)
1431
1430
return grid
1432
1431
1433
1432
@@ -1523,7 +1522,7 @@ def Cartesian_grid(f, name=None, method=None, axes=None, z=None, ln_z=None):
1523
1522
raise ValueError (
1524
1523
f"Can't do Cartesian regridding "
1525
1524
f"{ 'from' if name == 'source' else 'to' } "
1526
- f"a { name } an unstructured mesh of "
1525
+ f"a { name } unstructured mesh of "
1527
1526
f"{ mesh_location !r} cells"
1528
1527
)
1529
1528
@@ -1951,7 +1950,7 @@ def create_esmpy_grid(grid, mask=None):
1951
1950
shape [:ndim ] = c .shape
1952
1951
else :
1953
1952
raise ValueError (
1954
- f"Can't create an esmpy.Grid from coordinates with { c . dim } "
1953
+ f"Can't create an esmpy.Grid from coordinates with { ndim } "
1955
1954
f"dimensions: { c !r} "
1956
1955
)
1957
1956
@@ -2247,7 +2246,7 @@ def create_esmpy_mesh(grid, mask=None):
2247
2246
def create_esmpy_locstream (grid , mask = None ):
2248
2247
"""Create an `esmpy.LocStream`.
2249
2248
2250
- .. versionadded:: LOCVER
2249
+ .. versionadded:: 3.17.0
2251
2250
2252
2251
.. seealso:: `create_esmpy_grid`, `create_esmpy_mesh`
2253
2252
0 commit comments