Skip to content

Commit b250b38

Browse files
committed
convert back to a data array [skip-ci]
1 parent 653e5fd commit b250b38

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_dataset(\"RGB.byte\")\n",
212+
"da = xr.tutorial.open_dataset(\"RGB.byte\").data\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_dataset(\"RGB.byte\")\n",
248+
"da = xr.tutorial.open_dataset(\"RGB.byte\").data\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)