diff --git a/stackstac/rio_reader.py b/stackstac/rio_reader.py index 226c455..fa3841d 100644 --- a/stackstac/rio_reader.py +++ b/stackstac/rio_reader.py @@ -401,8 +401,9 @@ def read(self, window: Window, **kwargs) -> np.ndarray: if self.rescale: scale, offset = reader.scale_offset - if scale != 1 and offset != 0: + if scale != 1: result *= scale + if offset != 0: result += offset result = result.astype(self.dtype, copy=False)