class KeyError exception: KeyError: 'labels_to_process'
We are using SICOR 0.15.6
and for the following Granule /home/gts2/data//S2A_L1C/32U/MB/2017/S2A_MSIL1C_20170202T104241_N0204_R008_T32UMB_20170202T104536.SAFE/GRANULE/L1C_T32UMB_A008442_20170202T104536
we get the following exception:
"processing": {
"Exception": "Traceback (most recent call last):\n File \"/usr/local/python/.pyenv/versions/gts2_python_3.8.6/lib/python3.8/site-packages/sicor-0.15.6-py3.8.egg/sicor/sicor_ac.py\", line 461, in ac\n s2img = ac_gms(s2img, options=options, logger=logger, script=False)\n File \"/usr/local/python/.pyenv/versions/gts2_python_3.8.6/lib/python3.8/site-packages/sicor-0.15.6-py3.8.egg/sicor/sicor_ac.py\", line 859, in ac_gms\n areas_to_process = s2img.mask_clouds.mk_mask_at_spatial_scales(flags=options[\"AC\"][\"labels_to_process\"],\nKeyError: 'labels_to_process'\n",
"Exception_type": "<class 'KeyError'>",
The call is:
import sicor
sicor.sicor_ac.ac(aerosol_type='aerosol_1', catch_all_exceptions=True, coregistration={'granule': None, 'ref_image_basepath': '/home/gts2/data/aux_data/terracolor/UTM/', 'logdir': None, 'force': True, 'n_local_points': 30, 'image_pattern': 'IMG_DATA/**/*B[0-9][0-9A]_[1,2,6]0m.jp2', 'msk_pattern': '*MSK_*_[1,2,6]0m.jp2', 'msk_proxy': {'10m': 'B02_10m', '20m': 'B05_20m', '60m': 'B01_60m'}, 'ref_raster_band_for_s2_band': {'B01': 3, 'B02': 3, 'B03': 2, 'B04': 1, 'B05': 1, 'B06': 1, 'B07': 1, 'B08': 1, 'B8A': 1, 'B11': 1, 'B12': 1}, 'fmt_out': 'JP2OpenJPEG'}, granule_path='/home/gts2/data//S2A_L1C/32U/MB/2017/S2A_MSIL1C_20170202T104241_N0204_R008_T32UMB_20170202T104536.SAFE/GRANULE/L1C_T32UMB_A008442_20170202T104536', ignore_coreg_status=True, logdir='/home/gts2/logs/L2A', out_dir='/home/gts2/data/S2A_L2A_v0.15/32U/NF/2020', persist_result=True, raise_on_memory_exception=True, settings='/home/gts2/notebooks/gts2_options_ESA_aerosol_ECMWF_S2A_v0.15.json')
The Granule is available at:
/misc/gts2/setup_files/test_data/S2A_MSIL1C_20170202T104241_N0204_R008_T32UMB_20170202T104536.SAFE