From 653e5fde03a64e7b5d2d828268221f6f6d486a32 Mon Sep 17 00:00:00 2001 From: Keewis Date: Tue, 23 Mar 2021 18:23:41 +0100 Subject: [PATCH] use open_dataset instead of open_rasterio --- doc/examples/visualization_gallery.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/visualization_gallery.ipynb b/doc/examples/visualization_gallery.ipynb index 3f2973dbdb4..59718273a12 100644 --- a/doc/examples/visualization_gallery.ipynb +++ b/doc/examples/visualization_gallery.ipynb @@ -209,7 +209,7 @@ "metadata": {}, "outputs": [], "source": [ - "da = xr.tutorial.open_rasterio(\"RGB.byte\")\n", + "da = xr.tutorial.open_dataset(\"RGB.byte\")\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", @@ -245,7 +245,7 @@ "from rasterio.warp import transform\n", "import numpy as np\n", "\n", - "da = xr.tutorial.open_rasterio(\"RGB.byte\")\n", + "da = xr.tutorial.open_dataset(\"RGB.byte\")\n", "\n", "# Compute the lon/lat coordinates with rasterio.warp.transform\n", "ny, nx = len(da['y']), len(da['x'])\n",