Skip to content

Commit 00521ba

Browse files
Typos
Co-authored-by: Sadie L. Bartholomew <[email protected]>
1 parent 2d7f1f1 commit 00521ba

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

cf/field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13493,8 +13493,8 @@ def regrids(
1349313493

1349413494
The 2-d or 3-d regridding takes place on a sphere, with the
1349513495
grid being defined by latitude and longitude spherical polar
13496-
coordinates, and any available vertical coordinates. In 3-d
13497-
the case, the regridding may be done assuming linear or log
13496+
coordinates, and any available vertical coordinates. In the
13497+
3-d case, the regridding may be done assuming linear or log
1349813498
linear weights in the vertical.
1349913499

1350013500
**Latitude and longitude coordinates**
@@ -13534,7 +13534,7 @@ def regrids(
1353413534
**DSG feature types*
1353513535

1353613536
Data on any latitude-longitude grid (including tripolar and
13537-
UGRID meshes may be regridded to any DSG feature type
13537+
UGRID meshes) may be regridded to any DSG feature type.
1353813538

1353913539
**Cyclicity of the X axis**
1354013540

cf/regrid/regrid.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ def regrid(
380380

381381
if ln_z is None and src_z is not None:
382382
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."
385385
)
386386

387387
ln_z = bool(ln_z)
@@ -837,7 +837,7 @@ def spherical_coords_to_domain(
837837
axis_sizes = [coords["lat"].size, coords["lon"].size]
838838
if coords["lon"].ndim != 1:
839839
raise ValueError(
840-
"When 'dst' is a sequence containing latitude and "
840+
"When 'dst' is a sequence containing latitude and "
841841
"longitude coordinate constructs, they must have the "
842842
f"same shape. Got: {dst!r}"
843843
)
@@ -1427,7 +1427,6 @@ def spherical_grid(
14271427
)
14281428

14291429
set_grid_type(grid)
1430-
# print(grid)
14311430
return grid
14321431

14331432

@@ -1523,7 +1522,7 @@ def Cartesian_grid(f, name=None, method=None, axes=None, z=None, ln_z=None):
15231522
raise ValueError(
15241523
f"Can't do Cartesian regridding "
15251524
f"{'from' if name == 'source' else 'to'} "
1526-
f"a {name} an unstructured mesh of "
1525+
f"a {name} unstructured mesh of "
15271526
f"{mesh_location!r} cells"
15281527
)
15291528

@@ -1951,7 +1950,7 @@ def create_esmpy_grid(grid, mask=None):
19511950
shape[:ndim] = c.shape
19521951
else:
19531952
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} "
19551954
f"dimensions: {c!r}"
19561955
)
19571956

@@ -2247,7 +2246,7 @@ def create_esmpy_mesh(grid, mask=None):
22472246
def create_esmpy_locstream(grid, mask=None):
22482247
"""Create an `esmpy.LocStream`.
22492248
2250-
.. versionadded:: LOCVER
2249+
.. versionadded:: 3.17.0
22512250
22522251
.. seealso:: `create_esmpy_grid`, `create_esmpy_mesh`
22532252

0 commit comments

Comments
 (0)