Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Dec 7, 2024
1 parent 65d685f commit 6a8843b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/using/selecting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,26 @@ You can also rename variables:
This will be useful when you join datasets and do not want variables
from one dataset to override the ones from the other.

********
number
********

If a dataset is an ensemble, you can select one or more specific members
using the `number` option. You can also use ``numbers`` (which is an
alias for ``number``), and ``member`` (or ``members``). The difference
between the two is that ``number`` is **1-based**, while ``member`` is
**0-based**.

Select a single element:

.. literalinclude:: code/number1_.py
:language: python

... or a list:

.. literalinclude:: code/number2_.py
:language: python

.. _rescale:

*********
Expand All @@ -89,29 +109,9 @@ rescale the data.
.. warning::

When providing units, the library assumes that the mapping between
them is a linear transformation. No check is does to ensure this is
them is a linear transformation. No check is done to ensure this is
the case.

.. _cfunits: https://github.com/NCAS-CMS/cfunits

.. _number:

********
number
********

If a dataset is an ensemble, you can select one or more specific members
using the `number` option. You can also use ``numbers`` (which is an
alias for ``number``), and ``member`` (or ``members``). The difference
between the two is that ``number`` is **1-based**, while ``member`` is
**0-based**.

Select a single element:

.. literalinclude:: code/number1_.py
:language: python

... or a list:

.. literalinclude:: code/number2_.py
:language: python

0 comments on commit 6a8843b

Please sign in to comment.