diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9ee350e084d..2838e0b8e80 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -73,6 +73,8 @@ Bug fixes - Fix bug where plotting line plots with 2D coordinates depended on dimension order. (:issue:`3933`) By `Tom Nicholas `_. +- Fix ``RasterioDeprecationWarning`` when using a ``vrt`` in ``open_rasterio``. (:issue:`3964`) + By `Taher Chegini `_. Documentation ~~~~~~~~~~~~~ diff --git a/xarray/backends/rasterio_.py b/xarray/backends/rasterio_.py index d041e430db9..77beffd09b1 100644 --- a/xarray/backends/rasterio_.py +++ b/xarray/backends/rasterio_.py @@ -224,7 +224,7 @@ def open_rasterio(filename, parse_coordinates=None, chunks=None, cache=None, loc crs=vrt.crs.to_string(), resampling=vrt.resampling, src_nodata=vrt.src_nodata, - dst_nodata=vrt.dst_nodata, + nodata=vrt.nodata, tolerance=vrt.tolerance, transform=vrt.transform, width=vrt.width,