From 5783693895b4b055909c5758a72a5d40a365ef11 Mon Sep 17 00:00:00 2001 From: "Alan D. Snow" Date: Mon, 20 Mar 2023 12:47:44 -0500 Subject: [PATCH] BUG: Fix merge crs check (#655) --- docs/history.rst | 1 + rioxarray/merge.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/history.rst b/docs/history.rst index df66ee01..5224cff6 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,6 +3,7 @@ History Latest ------ +- BUG: Fix :mod:`rioxarray.merge` CRS check 0.14.0 ------ diff --git a/rioxarray/merge.py b/rioxarray/merge.py index 39d55a16..13d8899b 100644 --- a/rioxarray/merge.py +++ b/rioxarray/merge.py @@ -25,6 +25,7 @@ class RasterioDatasetDuck: def __init__(self, xds: DataArray): self._xds = xds + self.crs = xds.rio.crs self.bounds = xds.rio.bounds(recalc=True) self.count = int(xds.rio.count) self.dtypes = [xds.dtype]