Skip to content

Commit 0f2c702

Browse files
Docs: fix some typos and remove duplicate word
1 parent 2031dd8 commit 0f2c702

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cf/data/data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,9 +4896,9 @@ def Units(self):
48964896
>>> d = cf.Data([1, 2, 3], units='m')
48974897
>>> d.Units
48984898
<Units: m>
4899-
>>> d.Units = cf.Units('kilmetres')
4899+
>>> d.Units = cf.Units('kilometres')
49004900
>>> d.Units
4901-
<Units: kilmetres>
4901+
<Units: kilometres>
49024902
>>> d.Units = cf.Units('km')
49034903
>>> d.Units
49044904
<Units: km>
@@ -12045,7 +12045,7 @@ def to_memory(self):
1204512045
def transpose(self, axes=None, inplace=False, i=False):
1204612046
"""Permute the axes of the data array.
1204712047
12048-
.. seealso:: `flatten', `insert_dimension`, `flip`, `squeeze`,
12048+
.. seealso:: `flatten`, `insert_dimension`, `flip`, `squeeze`,
1204912049
`swapaxes`
1205012050
1205112051
:Parameters:

cf/field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5441,7 +5441,7 @@ def collapse(
54415441
field construct.
54425442

54435443
*Example:*
5444-
Calculate the temporal maximum of the weighted areal means
5444+
Calculate the temporal maximum of the weighted area means
54455445
using two independent calls:
54465446

54475447
>>> b = a.collapse('area: mean', weights=True).collapse('T: maximum')
@@ -5452,7 +5452,7 @@ def collapse(
54525452
specifies each axis, and a space delimits the separate collapses).
54535453

54545454
*Example:*
5455-
Calculate the temporal maximum of the weighted areal means in
5455+
Calculate the temporal maximum of the weighted area means in
54565456
a single call, using the cf-netCDF cell methods-like syntax:
54575457

54585458
>>> b =a.collapse('area: mean T: maximum', weights=True)
@@ -6068,7 +6068,7 @@ def collapse(
60686068
numbers of elements.
60696069

60706070
* The start of the first group may be
6071-
before the first first axis element,
6071+
before the first axis element,
60726072
depending on the offset defined by the
60736073
time duration. For example, if
60746074
``group=cf.Y(month=12)`` then the first

0 commit comments

Comments
 (0)