Skip to content

Commit efa8fe6

Browse files
authored
BUG: Fix pydata#2864 by adding the missing vrt parameters (transform, width, height)
1 parent aaae999 commit efa8fe6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xarray/backends/rasterio_.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ def open_rasterio(filename, parse_coordinates=None, chunks=None, cache=None,
224224
src_nodata=vrt.src_nodata,
225225
dst_nodata=vrt.dst_nodata,
226226
tolerance=vrt.tolerance,
227+
transform=vrt.transform,
228+
width=vrt.width,
229+
height=vrt.height,
227230
warp_extras=vrt.warp_extras)
228231

229232
if lock is None:

0 commit comments

Comments
 (0)