From 182bcfa68fa1466c1b021cdef95eb9c21bd19dca Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 19 May 2023 11:21:56 -0400 Subject: [PATCH] Properly label single thermal band --- stages/odm_orthophoto.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stages/odm_orthophoto.py b/stages/odm_orthophoto.py index 51ab2619..44a691de 100644 --- a/stages/odm_orthophoto.py +++ b/stages/odm_orthophoto.py @@ -88,6 +88,10 @@ class ODMOrthoPhotoStage(types.ODM_Stage): if reconstruction.is_georeferenced(): kwargs['inpaint'] = "-inpaintThreshold 1.0" + # Thermal dataset with single band + if reconstruction.photos[0].band_name.upper() == "LWIR": + kwargs['bands'] = '-bands lwir' + kwargs['models'] = ','.join(map(double_quote, models)) if reconstruction.is_georeferenced():