Skip to content

Commit dd2aae7

Browse files
authored
fix some minor typos (#272)
1 parent 6732fd7 commit dd2aae7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cf_xarray/accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ def _process_signature(
10531053
):
10541054
"""
10551055
Processes a function's signature, args, kwargs:
1056-
1. Binds ``*args`` so that everthing is a Mapping from kwarg name to values
1056+
1. Binds ``*args`` so that everything is a Mapping from kwarg name to values
10571057
2. Calls ``_rewrite_values`` to rewrite any special CF names to normal xarray names.
10581058
This uses ``key_mappers``
10591059
3. Unpacks arguments if necessary before returning them.
@@ -2034,7 +2034,7 @@ def bounds_to_vertices(
20342034
Dataset
20352035
Copy of the dataset with added vertices variables.
20362036
Either of shape (N+1,) or (N+1, M+1). New vertex dimensions are named
2037-
from the intial dimension and suffix "_vertices". Variables with similar
2037+
from the initial dimension and suffix "_vertices". Variables with similar
20382038
names are overwritten.
20392039
20402040
Raises

cf_xarray/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def bounds_to_vertices(
3838
-------
3939
DataArray
4040
Either of shape (N+1,) or (N+1, M+1). New vertex dimensions are named
41-
from the intial dimension and suffix "_vertices".
41+
from the initial dimension and suffix "_vertices".
4242
4343
Notes
4444
-----
@@ -97,7 +97,7 @@ def _bounds_helper(values, n_core_dims, nbounds, order):
9797
top_left = values[..., -1:, :, 1]
9898
top_right = values[..., -1:, -1:, 2]
9999
bot_right = values[..., :, -1:, 3]
100-
# Our asumption was wrong, axis 1 is rightward and axis 2 is upward
100+
# Our assumption was wrong, axis 1 is rightward and axis 2 is upward
101101
vertex_vals = np.block([[bot_left, bot_right], [top_left, top_right]])
102102
elif n_core_dims == 1 and nbounds == 2:
103103
# Middle points case (1D lat/lon)

cf_xarray/units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
pint.unit.UnitDefinition("percent", "%", (), pint.converters.ScaleConverter(0.01))
3434
)
3535

36-
# Define commonly encoutered units (both CF and non-CF) not defined by pint
36+
# Define commonly encountered units (both CF and non-CF) not defined by pint
3737
units.define(
3838
"degrees_north = degree = degrees_N = degreesN = degree_north = degree_N = degreeN"
3939
)

doc/examples/introduction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@
648648
"## Feature: Rewriting arguments\n",
649649
"\n",
650650
"`cf_xarray` can rewrite arguments for a large number of xarray functions. By\n",
651-
"this I mean that instead of specifing say `dim=\"lon\"`, you can pass `dim=\"X\"` or\n",
651+
"this I mean that instead of specifying say `dim=\"lon\"`, you can pass `dim=\"X\"` or\n",
652652
"`dim=\"longitude\"` and `cf_xarray` will rewrite that to `dim=\"lon\"` based on the\n",
653653
"attributes present in the dataset.\n",
654654
"\n",

0 commit comments

Comments
 (0)