Skip to content

Commit

Permalink
Set rasterio offsets and scales
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
chuckwondo committed Jun 14, 2024
1 parent d86f978 commit 627a3a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hls_vi/generate_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 627a3a5

Please sign in to comment.