Hi
I have installed icor in snap.
All the dependencies are met according to the documentation, such as gdal, rasterio, and numpy.
The gdal version is 2.4.1 and python version is 3.9. But when I process sentinel 2 I am getting the following error message.
"c:\Program Files\VITO\iCOR\bin\Python36\python.exe" "c:\Program Files\VITO\iCOR\src\icor.py" --sensor S2 --generate_viewing_grids_s2 false --glint_cor false --keep_intermediate false --apply_gains false --cloud_average_threshold 0.19 --cloud_low_band B01 --cloud_low_threshold 0.25 --cirrus true --aot true --aerosol_type RURAL --aot_window_size 100 --simec false --watervapor false --bg_window 1 --cirrus_threshold 0.01 --aot_override 0.1 --ozone_override 0.33 --wv_override 2.0 --water_band B08 --water_threshold 0.05 --working_folder c:/Temp/ --output_file c:\Temp\S2A_MSIL1C_20190115T145721_N0207_R039_T20QMF_20190115T164135_processed.tif E:\S2A_MSIL1C_20190115T145721_N0207_R039_T20QMF_20190115T164135.SAFE\MTD_MSIL1C.xml
======================================================================
4% Convert to scaled radiance
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfg1yss2dp.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfsxc1yjzr.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf2ptld_gr.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfw9qab8mu.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfhs2cw370.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf7b5ayb4u.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfcq6_1e9x.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf5qfxonex.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf__236m2n.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf06k5zrbk.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf6fbsj2d9.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfbvyynto9.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf4_6t_xuy.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfq5ju_e21.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfkyx79htd.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfj0tuyiii.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfamzwftvm.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfkkr9o157.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfps2zhfl5.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfpx44631x.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfsi6td0bc.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfdgt70rmi.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfl3t9i699.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfe03nnzzb.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf_wy7d9p7.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfhsxaxp7r.conf
======================================================================
9% Generate DEM
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf3ksczbez.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfjvlx_bfo.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfiv_ca_uf.conf
======================================================================
13% Resize images to 60m
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfepfsfc2g.conf
======================================================================
17% Single to MultiBand Radiance - 60M ALL
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfvllr1_z1.conf
======================================================================
22% Single to MultiBand Radiance - 60M
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfnzs4g75q.conf
======================================================================
26% Single to MultiBand Radiance - 20M
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf_7ng1eho.conf
======================================================================
30% Single to MultiBand Radiance - 10M
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfrjxjezmb.conf
======================================================================
35% Single to MultiBand Reflectance - 60M ALL
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconff9p7apa7.conf
======================================================================
39% Cloud detection - 60M
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf5qedld9d.conf
======================================================================
43% Water detection
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfiodantvn.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconfl95dh0fn.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf1vu15wbq.conf
======================================================================
48% Estimate the Aerosol Optical Thickness (AOT)
======================================================================
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconffbktzd44.conf
Running ac_runner c:\Temp\icor_tjppp560_proc\atcconf0s4j3ari.conf
Failed!
Process output:
+---------------------------------------------------------------------
| b':: load config file c:\\Temp\\icor_tjppp560_proc\\atcconf0s4j3ari.conf'
| b':: open image : c:/Temp/icor_tjppp560_proc/S2A_OPER_MSI_L1C_TL_SGS__20190115T164135_A018626_T20QMF_N02_07/S2A_OPER_MSI_L1C_TL_SGS__20190115T164135_A018626_T20QMF_N02_07_AOT_60M.tif'
| b''
| b''
| b'0% 10 20 30 40 50 60 70 80 90 100%'
| b'|----|----|----|----|----|----|----|----|----|----|'
| b'***************************************************'
| b''
| b':: image does not contain valid values'
+---------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Program Files\VITO\iCOR\src\icor\context.py", line 497, in invoke_ac_runner_check
p = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT,env=env)
File "c:\Program Files\VITO\iCOR\bin\Python36\lib\subprocess.py", line 356, in check_output
**kwargs).stdout
File "c:\Program Files\VITO\iCOR\bin\Python36\lib\subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'ac_runner c:\Temp\icor_tjppp560_proc\atcconf0s4j3ari.conf' returned non-zero exit status 4294967295.
During handling of the above exception, another exception occurred:
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 38, in process_saf
sentinel2_granule(granule,context,dir)
File "c:\Program Files\VITO\iCOR\src\icor\sentinel2.py", line 643, in sentinel2_granule
"ERROR : AOT values cannot be retrieved from the image - please use default aot value"
File "c:\Program Files\VITO\iCOR\src\icor\context.py", line 515, in invoke_ac_runner_check
raise Exception(comment)
Exception: process failed ac_runner c:\Temp\icor_tjppp560_proc\atcconf0s4j3ari.conf
in stage : Estimate the Aerosol Optical Thickness (AOT)
ERROR : AOT values cannot be retrieved from the image - please use default aot value
======================================================================
52% Remove intermediate files from filesystem
======================================================================
Traceback (most recent call last):
File "c:\Program Files\VITO\iCOR\src\icor.py", line 76, in process_product
context.remove_tmp_files(working_folder,keep_tmp, output_folder)
File "c:\Program Files\VITO\iCOR\src\icor\context.py", line 797, in remove_tmp_files
self.remove_dimap_subfolder()
File "c:\Program Files\VITO\iCOR\src\icor\context.py", line 702, in remove_dimap_subfolder
os.chdir(dimap_vector_folder)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'c:/Temp/icor_tjppp560_proc/dimap_file.data/vector_data'
could not remove tmpfiles from c:/Temp/icor_tjppp560_proc. Please check manually.
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\S2A_MSIL1C_20190115T145721_N0207_R039_T20QMF_20190115T164135_processed.tif
iCOR temp folder : c:/Temp/icor_tjppp560_proc
workflow = simec
E:\S2A_MSIL1C_20190115T145721_N0207_R039_T20QMF_20190115T164135.SAFE\MTD_MSIL1C.xml
processing Sentinel2 granule : S2A_OPER_MSI_L1C_TL_SGS__20190115T164135_A018626_T20QMF_N02.07
delete tmp files failed
------ERROR-------
process failed due to error :
process failed ac_runner c:\Temp\icor_tjppp560_proc\atcconf0s4j3ari.conf
in stage : Estimate the Aerosol Optical Thickness (AOT)
ERROR : AOT values cannot be retrieved from the image - please use default aot value
------ERROR-------
process end
iCOR Atmospheric correction done for product : c:/Temp/icor_tjppp560_proc\S2A_OPER_MSI_L1C_TL_SGS__20190115T164135_A018626_T20QMF_N02_07/S2A_OPER_MSI_L1C_TL_SGS__20190115T164135_A018626_T20QMF_N02_07
Finished tool execution in 247 seconds
please let me know what should I do and where I am making the mistake.
Regards