From ecfab44ad74b42a171aeed455783bcbbf1fad852 Mon Sep 17 00:00:00 2001 From: TabeaW <35938558+TabeaW@users.noreply.github.com> Date: Tue, 26 Nov 2024 07:51:29 +0100 Subject: [PATCH] Fix stack with save as int --- eoreader/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoreader/utils.py b/eoreader/utils.py index 23978e88..e8dc5d75 100644 --- a/eoreader/utils.py +++ b/eoreader/utils.py @@ -444,7 +444,7 @@ def stack( "Band not in reflectance, keeping them as is (the values will be rounded)" ) else: - band_xda = band_xda * scale + band_xds[band] = band_xda * scale # Fill no data band_xds = band_xds.fillna(nodata)