gdal2isce_xml.py: correct gdal multilook scheme for los

LT1AB
Sara Mirzaee 2021-09-29 10:30:06 -05:00
parent 816459c954
commit ef938691bf
1 changed files with 6 additions and 2 deletions

View File

@ -105,8 +105,12 @@ def gdal2isce_xml(fname):
img.scheme = 'BSQ' img.scheme = 'BSQ'
else: else:
print('Unrecognized interleaving scheme, {}'.format(sch)) print('Unrecognized interleaving scheme, {}'.format(sch))
if bands < 2:
print('Assuming default, BIP') print('Assuming default, BIP')
img.scheme = 'BIP' img.scheme = 'BIP'
else:
print('Assuming default, BSQ')
img.scheme = 'BSQ'
img.firstLongitude = transform[0] img.firstLongitude = transform[0]
img.firstLatitude = transform[3] img.firstLatitude = transform[3]