No miniLUT has been generated for this angle zone

Hello,

I get the above error for certain products while other products are working fine.
What am I missing in my configuration, how can I fix it ?
Below is the logging of the run generating the error

Thanks

$ python StartMaja/Start_maja.py -f StartMaja/folders.txt -t 31UFQ -s Wallonie -d 2022-02-11 -e 2022-07-11 -y
2022-07-12 09:59:02,983 [INFO ] =============This is Start_Maja v4.4.0==============
2022-07-12 09:59:14,085 [WARNI] 31UFQ
2022-07-12 09:59:21,332 [INFO ] Detecting input products…
2022-07-12 09:59:21,397 [INFO ] 438 L1C product(s) detected for site Wallonie and tile 31UFQ in /DATA2/ESA/input/Wallonie/T31UFQ
2022-07-12 09:59:21,434 [INFO ] 232 L2A product(s) detected for site Wallonie and tile 31UFQ in /DATA3/ESA/results/Wallonie/31UFQ
2022-07-12 09:59:21,435 [INFO ] Skipping CAMS file detection.
2022-07-12 09:59:21,435 [INFO ] Checking GIPP files
2022-07-12 09:59:21,435 [INFO ] Setting up GIPP folder: /home/Monitoring/MAJA4.5/StartMaja/start_maja_gipp
2022-07-12 09:59:21,441 [INFO ] Searching for DTM
2022-07-12 09:59:21,442 [INFO ] Found DTM: /home/Monitoring/MAJA4.5/StartMaja/DTM/S2__TEST_AUX_REFDE2_T31UFQ_0001.HDR
2022-07-12 09:59:21,447 [INFO ] GIPP Creation succeeded for SENTINEL2_TM
2022-07-12 09:59:21,669 [INFO ] 5 workplan(s) successfully created:
DATE | TILE | MODE | L1-PRODUCT | ADDITIONAL INFO
2022-06-19 10:46:31 | 31UFQ | NOMINAL | S2A_MSIL1C_20220619T104631_N0400_R051_T31UFQ_20220619T143101.SAFE | L2 from previous
2022-06-29 10:46:31 | 31UFQ | NOMINAL | S2A_MSIL1C_20220629T104631_N0400_R051_T31UFQ_20220629T143011.SAFE | L2 from previous
2022-07-01 10:36:29 | 31UFQ | NOMINAL | S2B_MSIL1C_20220701T103629_N0400_R008_T31UFQ_20220701T112552.SAFE | L2 from previous
2022-07-04 10:46:29 | 31UFQ | NOMINAL | S2B_MSIL1C_20220704T104629_N0400_R051_T31UFQ_20220704T113822.SAFE | L2 from previous
2022-07-06 10:36:41 | 31UFQ | NOMINAL | S2A_MSIL1C_20220706T103641_N0400_R008_T31UFQ_20220706T155916.SAFE | L2 from previous
2022-07-12 09:59:21,669 [INFO ] Beginning workplan execution.
2022-07-12 09:59:21,669 [INFO ] Executing workplan #1/5
2022-07-12 09:59:22,980 [INFO ] 13 products found for date 2022-06-19 10:46:31
2022-07-12 09:59:23 [20292] PROGRESS MAJA 4.5 initialize:489 Starting MAJA_L2_NOMINAL_CHAIN
2022-07-12 10:08:00 [20292] PROGRESS MAJA 4.5 process_one_product:731 System infos (RAM;DISK;HOUR;MIN;SEC;LOAD) : 9200;3060;0;8;37;62
2022-07-12T10:08:01.598991 DarkestPixelAOT 4.5 [000000020292] [W] Warning : The dark surface reflectance associated to the value of AOT index min is lower than the dark surfac
e reflectance threshold. AOT dark is set to the AOT index min : 0.
2022-07-12T10:13:19.264665 ImageListWriter 4.5 [000000020292] [E] vns::Business::ERROR: ComputeScatteringCorrectionImageFilter(0x3bcf4320): For band id ‘0’ (nb channel=‘4’) ’
no miniLUT has been generated for this angle zone (detector) : ‘9’. Angles zones are [0,10,11,12,] !!!,Check coherency between metadata and input zone mask source. [vnsComput
eScatteringCorrectionImageFilter.txx:ThreadedGenerateData:252]
2022-07-12T10:13:19.264665 ImageListWriter 4.5 [000000020292] [E] vns::Business::ERROR: ComputeScatteringCorrectionImageFilter(0x3bcf4320): For band id ‘0’ (nb channel=‘4’) ’
no miniLUT has been generated for this angle zone (detector) : ‘9’. Angles zones are [0,10,11,12,] !!!,Check coherency between metadata and input zone mask source. [vnsComput
eScatteringCorrectionImageFilter.txx:ThreadedGenerateData:252]
2022-07-12T10:13:19.264665 ImageListWriter 4.5 [000000020292] [E] vns::Business::ERROR: ComputeScatteringCorrectionImageFilter(0x3bcf4320): For band id ‘0’ (nb channel=‘4’) ’
no miniLUT has been generated for this angle zone (detector) : ‘9’. Angles zones are [0,10,11,12,] !!!,Check coherency between metadata and input zone mask source. [vnsComput
eScatteringCorrectionImageFilter.txx:ThreadedGenerateData:252]
Traceback (most recent call last):
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/launcher/maja.py”, line 106, in
main()
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/launcher/maja.py”, line 75, in main
lprocessor.scientific_processing()
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/processor/l2_nominal_processor.py”, line 218, in scientific_processing
l2_image_file_writer)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/processor/l2_processor.py”, line 852, in process_one_product
l_IsDefaultAOT)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/processor/l2_processor_image_writer_setup.py”, line 299, in setup_l2_image_writer
p_OutputL2ImageFileWriter.write(l2_write_working)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/plugins/common/muscate/maja_muscate_l2_image_writer.py”, line 156, in write
working_dir)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/plugins/common/muscate/maja_muscate_l2_image_writer.py”, line 402, in write_public_images
write_images(tmp_l2_image_list, tmp_l2_filename_list)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/cots/otb/algorithms/otb_write_images.py”, line 77, in write_images
app = OtbAppHandler(“ImageListWriter”, parameters)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/cots/otb/otb_app_handler.py”, line 70, in init
self._run()
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/cots/otb/otb_app_handler.py”, line 84, in _run
self._c1.run(self._write_output)
File “/home/Monitoring/MAJA4.5/lib/python/orchestrator/cots/otb/otb_cots.py”, line 71, in run
self.otb_app.ExecuteAndWriteOutput()
File “/home/Monitoring/MAJA4.5/lib/python/otbApplication.py”, line 2852, in ExecuteAndWriteOutput
return _otbApplication.Application_ExecuteAndWriteOutput(self)
RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /opt/build-cots/ITK/source/Modules/Core/Common/src/itkMultiThreader.cxx:399:
itk::ERROR: MultiThreader(0x1f14e750): Exception occurred during SingleMethodExecute
…/Code/Algorithms/L2/ScatteringCorrection/vnsComputeScatteringCorrectionImageFilter.txx:252:
vns::Business::ERROR: ComputeScatteringCorrectionImageFilter(0x3bcf4320): For band id ‘0’ (nb channel=‘4’) ’ no miniLUT has been generated for this angle zone (detector) : ‘9’. Angles zones are [0,10,11,12,] !!!,Check coherency between metadata and input zone mask source.
Traceback (most recent call last):
File “StartMaja/Start_maja.py”, line 596, in
s.run()
File “StartMaja/Start_maja.py”, line 526, in run
return_code = wp.execute(self.maja, self.dtm, self.gipp, self.userconf,self.output_plugin)
File “/home/Monitoring/MAJA4.5/StartMaja/Chain/Workplan.py”, line 305, in execute
return_code = self.launch_maja(maja, wdir=self.wdir, inputdir=self.input_dir, outdir=self.outdir, conf=conf, outformat=outformat)
File “/home/Monitoring/MAJA4.5/StartMaja/Chain/Workplan.py”, line 175, in launch_maja
return FileSystem.run_external_app(maja, args, logfile=logfile, skip_error=self.skip_errors)
File “/home/Monitoring/MAJA4.5/StartMaja/Common/FileSystem.py”, line 188, in run_external_app
raise subprocess.CalledProcessError(return_code, cmd)
subprocess.CalledProcessError: Command ‘/home/Monitoring/MAJA4.5/bin/maja -w /DATA/tmp/Start_maja_a1f2a9357966d84e3fd7d29b6e74b580/maja_working_directory --input /DATA/tmp/Start_maja_a1f2a9357966d84e3fd7d29b6e74b580 --output /DATA3/ESA/results/Wallonie/31UFQ --mode L2NOMINAL -ucs /home/Monitoring/MAJA4.5/StartMaja/userconf --TileId 31UFQ --loglevel PROGRESS’ returned non-zero exit status 1.

Hi @seffinier

Unfortunately there are some ESA L1C which have malformed metadata, we did a lot of work to take into account this malformation, but on some product the problem still appears, because the detectors are declared in the file, but a whole angle zone is missing in the metadata, and Maja cannot guess what are these angle values. The problem is known and reported. You could try another time period to see if the problem still exists

Best Regards

Thank you for the quick answer
In the meantime, I found this issue which seems to cover my problem:

So I guess I have to discard the product and retry…

Thanks