Can't process some tiles, Sen2Cor IndexError: list index out of range

On further analysis, I found out the following:

By adding
print(t1c_split)
print(t2a_split)

below line 158 in file Sen2Cor-2.4.0-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Tables.py , i found out the difference in the tiles that are working with L2A_Process and the ones throwing an error. Here are the 2 different outputs of print(t1c_split) statement:
[‘S2B’, ‘OPER’, ‘MSI’, ‘L1C’, ‘TL’, ‘SGS’, ‘’, ‘20170920T031613’, ‘A002816’, ‘T55JGH’, ‘N02.05’]
[‘S2B’, ‘OPER’, ‘MSI’, ‘L1C’, ‘TL’, ‘EPAE’, ‘20171109T165835’, ‘A003531’, ‘T55JGL’, ‘N02.06’]

So, I see that in the upper case there are 11 items in the list (there is one empty item at position 7 > ‘’), while in the lower there are only 10, hence the t1csplit[10] throws an IndexError. So i changed t1csplit[10] in line 163 to t1csplit[-1] and this appears to solve the issue.

6 Likes