From dbc5c0db8bf2ff020431a3459df69cea3c8a6081 Mon Sep 17 00:00:00 2001 From: Andrew Kirmse Date: Mon, 18 Mar 2024 20:58:53 -0700 Subject: [PATCH] Handle source rasters with only 1 overview level. --- scripts/run_lidar_prominence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_lidar_prominence.py b/scripts/run_lidar_prominence.py index 6d73225..41f02c5 100644 --- a/scripts/run_lidar_prominence.py +++ b/scripts/run_lidar_prominence.py @@ -147,7 +147,7 @@ def create_vrts(tile_dir, input_files): print("Data has no overviews; using full resolution (slow)") overview_level = None else: - overview_level = min(2, num_overviews) + overview_level = min(2, num_overviews-1) raw_dataset = None print(" Computing boundary")