From 627a3a5aca9cf4c16512df7da0382cf366e7d6ef Mon Sep 17 00:00:00 2001 From: Chuck Daniels Date: Fri, 14 Jun 2024 19:06:46 -0400 Subject: [PATCH] Set rasterio offsets and scales Fixes #3 --- hls_vi/generate_indices.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hls_vi/generate_indices.py b/hls_vi/generate_indices.py index 2addffe..1b575bf 100644 --- a/hls_vi/generate_indices.py +++ b/hls_vi/generate_indices.py @@ -250,6 +250,8 @@ def write_granule_index( transform=granule.transform, nodata=data.fill_value, ) as dst: + dst.offsets = (0.0,) + dst.scales = (index.scale_factor,) dst.write(data.filled(), 1) dst.update_tags( **granule.tags,