diff --git a/notebooks/1-Intro/03-netCDF.ipynb b/notebooks/1-Intro/03-netCDF.ipynb index 91bc7fe..73b33e8 100644 --- a/notebooks/1-Intro/03-netCDF.ipynb +++ b/notebooks/1-Intro/03-netCDF.ipynb @@ -97,7 +97,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Then if we want to access the values only, we can use similar commands but with the `[:]` at the end:" + "Then if we want to access the values only, we can use similar commands but with the `[:]` (or `[:,:]` for 2D variables) at the end:" ] }, { @@ -108,7 +108,7 @@ "source": [ "lonval = ds[\"lon\"][:];\n", "latval = ds[\"lat\"][:];\n", - "b = ds[\"bat\"][:];" + "b = ds[\"bat\"][:,:];" ] }, { @@ -161,7 +161,7 @@ "Dataset(ncfile, \"r\") do ds\n", " lonval = ds[\"lon\"][:];\n", " latval = ds[\"lat\"][:];\n", - " b = ds[\"bat\"][:];\n", + " b = ds[\"bat\"][:,:];\n", "end;" ] },