if I try to use san2core with L1C image that have in the Groundstation’s identification more than three characters I recive error signal. This error is generate becose in the name ther are a different number of ‘_’
No ERROR name
S2B_OPER_MSI_L1C_TL_SGS__20180816T190016_A007543_T22KFE_N02.06
if use split (’_’)
[‘S2B’, ‘OPER’, ‘MSI’, ‘L1C’, ‘TL’, ‘SGS’, ‘’, ‘20180816T190016’, ‘A007543’, ‘T22KFE’, ‘N02.06’]
ERROR name
S2B_OPER_MSI_L1C_TL_EPAE_20180819T200710_A007586_T22KDE_N02.06
if use split (’_’)
[‘S2B’, ‘OPER’, ‘MSI’, ‘L1C’, ‘TL’, ‘EPAE’, ‘20180819T200710’, ‘A007586’, ‘T22KDE’, ‘N02.06’]
So I modifed the function L2A_Tables.py in this manner
add a ‘_’ if Groundstation has only 3 character (see section 3.4.2 of PSD 14.1):
if len(t1c_split[5]) == 3:
t1c_split[5] += '_'
self._tileId2a = t1c_split[0] + '_USER_' + t1c_split[2] + '_' + t2a_split[0] + '_' + \
t1c_split[4] + '_' + t1c_split[5] + '_' + t2a_split[3] + '_' + \
t2a_split[2] + '_' + t2a_split[1] + '_' + t1c_split[10]
else :
self._tileId2a = t1c_split[0] + '_USER_' + t1c_split[2] + '_' + t2a_split[0] + '_' + \
t1c_split[4] + '_' + t1c_split[5] + '_' + t2a_split[3] + '_' + \
t2a_split[2] + '_' + t2a_split[1] + '_' + t1c_split[9]