Skip to content

Commit 653e5fd

Browse files
committed
use open_dataset instead of open_rasterio
1 parent 6f02db4 commit 653e5fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/examples/visualization_gallery.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"metadata": {},
210210
"outputs": [],
211211
"source": [
212-
"da = xr.tutorial.open_rasterio(\"RGB.byte\")\n",
212+
"da = xr.tutorial.open_dataset(\"RGB.byte\")\n",
213213
"\n",
214214
"# The data is in UTM projection. We have to set it manually until\n",
215215
"# https://github.com/SciTools/cartopy/issues/813 is implemented\n",
@@ -245,7 +245,7 @@
245245
"from rasterio.warp import transform\n",
246246
"import numpy as np\n",
247247
"\n",
248-
"da = xr.tutorial.open_rasterio(\"RGB.byte\")\n",
248+
"da = xr.tutorial.open_dataset(\"RGB.byte\")\n",
249249
"\n",
250250
"# Compute the lon/lat coordinates with rasterio.warp.transform\n",
251251
"ny, nx = len(da['y']), len(da['x'])\n",

0 commit comments

Comments
 (0)