From 5d6743a1a477a0a29f1f9dee4942d4768c01bd55 Mon Sep 17 00:00:00 2001 From: Callan Gray Date: Mon, 4 Aug 2025 21:59:54 +0800 Subject: [PATCH] Notebook corrections Signed-off-by: Callan Gray --- docs/examples/plotting.ipynb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/examples/plotting.ipynb b/docs/examples/plotting.ipynb index 84578c3d..cefa08ca 100644 --- a/docs/examples/plotting.ipynb +++ b/docs/examples/plotting.ipynb @@ -66,7 +66,7 @@ "metadata": {}, "source": [ "
\n", - "Note: this example uses the data provided by the xarray.tutorial functions. As such, the units attributes follow the CF conventions, which pint does not understand by default. To still be able to read them we are using the registry provided by cf-xarray.\n", + "Note: this example uses the data provided by the xarray.tutorial functions. As such, the units attributes follow the CF conventions, which astropy does not understand by default. To still be able to read them, registry be aliases can be used. For more information, see cf-xarray.\n", "
" ] }, @@ -110,7 +110,7 @@ "id": "9", "metadata": {}, "source": [ - "Most operations will preserve the units but there are some which will drop them (see the [duck array integration status](https://xarray.pydata.org/en/stable/user-guide/duckarrays.html#missing-features) page). To work around that there are unit-aware versions on the `.pint` accessor. For example, to select data use `.astropy.sel` instead of `.sel`:" + "Most operations will preserve the units but there are some which will drop them (see the [duck array integration status](https://xarray.pydata.org/en/stable/user-guide/duckarrays.html#missing-features) page). To work around that there are unit-aware versions on the `.astropy` accessor. For example, to select data use `.astropy.sel` instead of `.sel`:" ] }, { @@ -145,14 +145,6 @@ "source": [ "monthly_means.astropy.dequantify(format=\"unicode\").plot.imshow(col=\"month\", col_wrap=4)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "13", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {