Command line iCOR 2.0 failing for S2 data

Hello,

the quick solution to this problem is to provide the link to an image file in the ‘IMAGE_DATA’ folder as the input file.
In stead of
/media/seasnet/ext10tb_02/sentinel2/procesamiento/canarias/20190312_S2A/S2A_MSIL1C_20190312T115211_N0207_R123_T28RBS_20190312T151823.SAFE/MTD_MSIL1C.xml

you can provide
/media/seasnet/ext10tb_02/sentinel2/procesamiento/canarias/20190312_S2A/S2A_MSIL1C_20190312T115211_N0207_R123_T28RBS_20190312T151823.SAFE/GRANULE/L1C_T28RBS_A019425_20190312T115214/IMG_DATA/T28RBS_20190312T115211_B01.jp2

OR

as an administrator, change a line code in
/opt/vito/icor/src/icor/sentinel2_metadata.py
line 162
from
if str(input_file).find(“GRANULE”):
to
if str(input_file).find(“GRANULE”) != -1:

this bug will be fixed in a next release/patch.

Hope this works out for you.
Stefan Adriaensen

2 Likes