Skip to content

Commit

Permalink
fix for NCDatasets 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Dec 15, 2023
1 parent 3c7e4bd commit 3706880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/1-Intro/03-netCDF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
},
{
Expand All @@ -108,7 +108,7 @@
"source": [
"lonval = ds[\"lon\"][:];\n",
"latval = ds[\"lat\"][:];\n",
"b = ds[\"bat\"][:];"
"b = ds[\"bat\"][:,:];"
]
},
{
Expand Down Expand Up @@ -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;"
]
},
Expand Down

0 comments on commit 3706880

Please sign in to comment.