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 1/2] 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) From 55d98fc591d18056744bf486f51bc130829872d6 Mon Sep 17 00:00:00 2001 From: TabeaW <35938558+TabeaW@users.noreply.github.com> Date: Tue, 26 Nov 2024 08:01:49 +0100 Subject: [PATCH 2/2] Update CHANGES.md --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 8a65b383..1898b541 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ # Release History ## 0.21.8 (2024-mm-dd) +- FIX: Fix stack save_as_int to use updated int values - ENH: Add a new type (`BandsType`) for list of BandType - FIX: Fixed PAZ Product Regex to properly indentify PAZ ST products as `PAZProduct` @guillemc23 - FIX: Remove useless `_norm_diff` function `indices.py`