From ef938691bfff0b19697bce74ca4c0d58295ab1ea Mon Sep 17 00:00:00 2001 From: Sara Mirzaee Date: Wed, 29 Sep 2021 10:30:06 -0500 Subject: [PATCH] gdal2isce_xml.py: correct gdal multilook scheme for los --- applications/gdal2isce_xml.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/gdal2isce_xml.py b/applications/gdal2isce_xml.py index 3eab342..0dd36c5 100755 --- a/applications/gdal2isce_xml.py +++ b/applications/gdal2isce_xml.py @@ -105,8 +105,12 @@ def gdal2isce_xml(fname): img.scheme = 'BSQ' else: print('Unrecognized interleaving scheme, {}'.format(sch)) - print('Assuming default, BIP') - img.scheme = 'BIP' + if bands < 2: + print('Assuming default, BIP') + img.scheme = 'BIP' + else: + print('Assuming default, BSQ') + img.scheme = 'BSQ' img.firstLongitude = transform[0] img.firstLatitude = transform[3]