Merge pull request #352 from mirzaees/stripmap_gdal_multilook

gdal2isce_xml.py: correct gdal multilook scheme for los
LT1AB
Ryan Burns 2022-07-28 11:15:04 -07:00 committed by GitHub
commit 34895d1761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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]