From 6a8843b832d0c15f296d9284b6bc0cdf78510bd4 Mon Sep 17 00:00:00 2001 From: b8raoult <53792887+b8raoult@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:15:02 +0000 Subject: [PATCH] update documentation --- docs/using/selecting.rst | 42 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/using/selecting.rst b/docs/using/selecting.rst index 8366444f..cf3cf6d1 100644 --- a/docs/using/selecting.rst +++ b/docs/using/selecting.rst @@ -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: ********* @@ -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