Commit 8d45362d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix for an exception during L2B_P in case of Landsat-4 and -5 data

- updated __version__


Former-commit-id: 2edcbc23
parent cd1e7a26
......@@ -15,7 +15,7 @@ from . import config
from .processing.process_controller import process_controller
__version__ = '20170327.02'
__version__ = '20170327.03'
__author__ = 'Daniel Scheffler'
__all__ = ['algorithms',
'io',
......
......@@ -1777,7 +1777,7 @@ def get_LayerBandsAssignment(GMS_identifier, nBands=None, ignore_usecase=False,
if CFG.usecase.conversion_type_optical=='BOA_Ref':
path_ac_options = get_path_ac_options(GMS_identifier)
if os.path.exists(path_ac_options):
if path_ac_options and os.path.exists(path_ac_options):
ac_bandNs = get_ac_options(path_ac_options)['AC']['bands'] # FIXME this does not work for L7
ac_out_LBA = [bN.split('B0')[1] if bN.startswith('B0') else bN.split('B')[1] for bN in ac_bandNs]
LayerBandsAssignment = [i for i in LayerBandsAssignment if i in ac_out_LBA]
......
......@@ -302,8 +302,8 @@ def get_path_ac_options(GMS_identifier):
ac_options_file_dic = {
'AVNIR-2': None,
'TM4': None, # 'l8_options.json' # not yet usable due to missing ECMWF archive < 2012
'TM5': None, # 'l8_options.json' # not yet usable due to missing ECMWF archive < 2012
'TM4': 'l8_options.json', # FIXME not yet usable due to missing ECMWF archive < 2012
'TM5': 'l8_options.json', # FIXME not yet usable due to missing ECMWF archive < 2012
'TM7': 'l8_options.json', # AC uses Landsat-8 options for L7 but reads only a subset of the options
'LDCM': 'l8_options.json',
'SPOT1a': None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment