diff --git a/rioxarray/rioxarray.py b/rioxarray/rioxarray.py index 9b09ad2d..af942e1b 100644 --- a/rioxarray/rioxarray.py +++ b/rioxarray/rioxarray.py @@ -1100,6 +1100,7 @@ def to_raster( dtype=None, tags=None, windowed=False, + recalc_transform=True, **profile_kwargs, ): """ @@ -1165,7 +1166,7 @@ def to_raster( count=count, dtype=dtype, crs=self.crs, - transform=self.transform(recalc=True), + transform=self.transform(recalc=recalc_transform), nodata=( self.encoded_nodata if self.encoded_nodata is not None else self.nodata ),