Aftermath downloading and run the installation, the next step is to install the plugin from the tool---->download plugin--------> install plugin, later on the iCOR will appear
I think the problem isn’t related to the opining of the S2 image file, but You need to update your SNAP, (Which version do you use?) Remove the iCOR and Re-install it as I explained to you in the previous post,
Because the first show of this plugin should be this,
iCOR with Sentinel-2 images is OK now. Thanks!
With Landsat-8 TOA images this message appeared when I selected *_MTL.txt file as product guide indicated.:
Sir, I have encountered a similar error while processing S2 and S3 images. I am using SNAP 7, and installed the lastest version of ICOR available.I have tried chosing the image from the product browser and also by selecting the .xml files.
the error shown for S2 image is
Traceback (most recent call last):
File “c:\Program Files\VITO\iCOR\src\icor.py”, line 45, in process_product
icor.sentinel2.process_saf(context, product,working_folder)
File “c:\Program Files\VITO\iCOR\src\icor\sentinel2.py”, line 72, in process_saf
granules = sentinel2_metadata.parse(path,bandList)
File “c:\Program Files\VITO\iCOR\src\icor\sentinel2_metadata.py”, line 311, in parse
raise Exception("Something went wrong while parsing the S2 metadata file: s" str(e))
Exception: Something went wrong while parsing the S2 metadata file: coercing to Unicode: need string or buffer, NoneType found
parsing arguments
done
icor installation folder C:\Program Files\VITO\iCOR
running icor for Sentinel2 …
reading config C:\Program Files\VITO\iCOR/src/config/local_sentinel2_simec.ini
output path = c:\Temp\S2B_MSIL1C_20200213T050919_N0209_R019_T43PFL_20200213T084920_processed.tif
iCOR temp folder : c:/users/user/appdata/local/temp/icor_yzy6xg_proc
workflow = simec
Finished tool execution in 0 seconds
Using Snap 7.0 in Ubuntu 18.04 and Icor plugins downloaded last week.
I cannot load L8 MTL file as indicated in the user manual. For Sentinel 2, MTD file is correctly loaded then error arise when executing ICor.
/usr/bin/python: can’t open file ‘/opt/vito/icor\src\icor.py’: [Errno 2] No such file or directory
Icor for Landsat 8 cannot load MTL file
“/opt/vito/icor\src\icor.py” this line indicates some mixing of unix and win32 code…
Solved. Reinstalled Snap with all toolboxes and it is all working properly.
Hey @falahfakhri, @ABraun
I’m getting error while working with iCOR Landsat 8 data Key Error: ‘max_stages’
Any help regarding this would be appreciated.
I would also like to know about, the possibility and procedure to atmospheric correct a specific band (i.e. Band-8)
“c:\Program Files\VITO\iCOR\bin\Python36\python.exe” “c:\Program Files\VITO\iCOR\src\icor.py” --keep_intermediate false --apply_gains false --glint_cor false --cloud_average_threshold 0.2 --cloud_low_band B01 --cloud_low_threshold 0.15 --cirrus true --aot true --aerosol_type RURAL --aot_override 0.1 --aot_window_size 500 --simec false --watervapor false --wv_override 2.0 --bg_window 1 --cirrus_threshold 0.005 --ozone_override 0.33 --water_band B05 --water_threshold 0.05 --sensor L8 --working_folder c:/Temp/ --output_file c:\Temp\LC08_L1TP_195020_20181025_20200830_02_T1_B8_processed.tif “D:\image\New folder\downloads\data for class\New folder\2018\LC08_L1TP_195020_20181025_20200830_02_T1_B8.TIF”
Traceback (most recent call last):
File “c:\Program Files\VITO\iCOR\src\icor.py”, line 39, in process_product
icor.landsat8.process_tgz(context, product,working_folder)
File “c:\Program Files\VITO\iCOR\src\icor\landsat8.py”, line 27, in process_tgz
l8_metadata.parse_config_file()
File “c:\Program Files\VITO\iCOR\src\icor\landsat8_metadata.py”, line 14, in parse_config_file
for line in config_file:
File “c:\Program Files\VITO\iCOR\bin\Python36\lib\encodings\cp1252.py”, line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x81 in position 134: character maps to
parsing arguments
done
icor installation folder c:\Program Files\VITO\iCOR
running icor for Landsat8 …c:\Program Files\VITO\iCOR
reading config c:\Program Files\VITO\iCOR/src/config/local_landsat8_simec.ini
output path = c:\Temp\LC08_L1TP_195020_20181025_20200830_02_T1_B8_processed.tif
iCOR temp folder : c:/Temp/icor_kpk99kns_proc
workflow = simec
Traceback (most recent call last):
File “c:\Program Files\VITO\iCOR\src\icor.py”, line 280, in
process_product(context,product)
File “c:\Program Files\VITO\iCOR\src\icor.py”, line 64, in process_product
context.enter_stage(“Remove intermediate files from filesystem”)
File “c:\Program Files\VITO\iCOR\src\icor\context.py”, line 168, in enter_stage
proc = (float(self._stagenr) / float(self._params[“max_stages”])) * 100.0
KeyError: ‘max_stages’
Finished tool execution in 0 seconds
Hi! The “max stages” error in my case was associated with using the cropped Sentinel-2 image. ICOR always needs the original image as input. It can’t be applied to subsets.