Skip to content

Commit 80e4e89

Browse files
authored
Merge stable into master (#3457)
* Typo correction in docs (#3387) * Update terminology.rst (#3455) Fixed broken link
1 parent 278d2e6 commit 80e4e89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/data-structures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Any variables using that dimension are dropped:
411411
412412
As an alternate to dictionary-like modifications, you can use
413413
:py:meth:`~xarray.Dataset.assign` and :py:meth:`~xarray.Dataset.assign_coords`.
414-
These methods return a new dataset with additional (or replaced) or values:
414+
These methods return a new dataset with additional (or replaced) values:
415415

416416
.. ipython:: python
417417
@@ -420,7 +420,7 @@ These methods return a new dataset with additional (or replaced) or values:
420420
There is also the :py:meth:`~xarray.Dataset.pipe` method that allows you to use
421421
a method call with an external function (e.g., ``ds.pipe(func)``) instead of
422422
simply calling it (e.g., ``func(ds)``). This allows you to write pipelines for
423-
transforming you data (using "method chaining") instead of writing hard to
423+
transforming your data (using "method chaining") instead of writing hard to
424424
follow nested function calls:
425425

426426
.. ipython:: python

doc/terminology.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Terminology
1515

1616
----
1717

18-
**Variable:** A `NetCDF-like variable <https://www.unidata.ucar.edu/software/netcdf/netcdf/Variables.html>`_ consisting of dimensions, data, and attributes which describe a single array. The main functional difference between variables and numpy arrays is that numerical operations on variables implement array broadcasting by dimension name. Each ``DataArray`` has an underlying variable that can be accessed via ``arr.variable``. However, a variable is not fully described outside of either a ``Dataset`` or a ``DataArray``.
18+
**Variable:** A `NetCDF-like variable <https://www.unidata.ucar.edu/software/netcdf/docs/netcdf_data_set_components.html#variables>`_ consisting of dimensions, data, and attributes which describe a single array. The main functional difference between variables and numpy arrays is that numerical operations on variables implement array broadcasting by dimension name. Each ``DataArray`` has an underlying variable that can be accessed via ``arr.variable``. However, a variable is not fully described outside of either a ``Dataset`` or a ``DataArray``.
1919

2020
.. note::
2121

@@ -39,4 +39,4 @@ Terminology
3939

4040
----
4141

42-
**Index:** An *index* is a data structure optimized for efficient selecting and slicing of an associated array. Xarray creates indexes for dimension coordinates so that operations along dimensions are fast, while non-dimension coordinates are not indexed. Under the hood, indexes are implemented as :py:class:`pandas.Index` objects. The index associated with dimension name ``x`` can be retrieved by ``arr.indexes[x]``. By construction, ``len(arr.dims) == len(arr.indexes)``
42+
**Index:** An *index* is a data structure optimized for efficient selecting and slicing of an associated array. Xarray creates indexes for dimension coordinates so that operations along dimensions are fast, while non-dimension coordinates are not indexed. Under the hood, indexes are implemented as :py:class:`pandas.Index` objects. The index associated with dimension name ``x`` can be retrieved by ``arr.indexes[x]``. By construction, ``len(arr.dims) == len(arr.indexes)``

0 commit comments

Comments
 (0)