Skip to content

Commit

Permalink
convert back to a data array
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Mar 23, 2021
1 parent 653e5fd commit 87ce8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/examples/visualization_gallery.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"metadata": {},
"outputs": [],
"source": [
"da = xr.tutorial.open_dataset(\"RGB.byte\")\n",
"da = xr.tutorial.open_dataset(\"RGB.byte\").data\n",
"\n",
"# The data is in UTM projection. We have to set it manually until\n",
"# https://github.com/SciTools/cartopy/issues/813 is implemented\n",
Expand Down Expand Up @@ -245,7 +245,7 @@
"from rasterio.warp import transform\n",
"import numpy as np\n",
"\n",
"da = xr.tutorial.open_dataset(\"RGB.byte\")\n",
"da = xr.tutorial.open_dataset(\"RGB.byte\").data\n",
"\n",
"# Compute the lon/lat coordinates with rasterio.warp.transform\n",
"ny, nx = len(da['y']), len(da['x'])\n",
Expand Down

0 comments on commit 87ce8b3

Please sign in to comment.