L4B Crop Type processing /Crop Type fused step

Hello guys,

I’m using the version 2.01 of Sen2Agri. I used the custom jobs for L4B and here’s the error message I am getting from the monitoring page:

Can you help?

Cheers

Step
Crop Type fused

command
CropTypeFused.py -refp /mnt/upload/TempChaouia29SQT/sen2agri_1581079354/Fields.shp -ratio 0.75 -classifier rf -rseed 0 -pixsize 10 -rfnbtrees 100 -rfmax 25 -rfmin 25 -tile-threads-hint 4 -siteid 2 -outdir /mnt/archive/orchestrator_temp/l4b/308/13995-crop-type-fused/ -targetfolder /mnt/archive/tempchaouia29sqt/l4b/ -outprops /mnt/archive/orchestrator_temp/l4b/308/13995-crop-type-fused/product_properties.txt -input /mnt/archive/maccs_def/tempchaouia29sqt/l2a/S2B_MSIL2A_20181029T111149_N0206_R137_T29SQT_20181029T131825.SAFE/S2B_OPER_SSC_L2VALD_29SQT____20181029.HDR /mnt/archive/maccs_def/tempchaouia29sqt/l2a/S2B_MSIL2A_20190107T111439_N0207_R137_T29SQT_20190107T114052.SAFE/S2B_OPER_SSC_L2VALD_29SQT____20190107.HDR /mnt/archive/maccs_def/tempchaouia29sqt/l2a/S2B_MSIL2A_20190616T110629_N0207_R137_T29SQT_20190616T132637.SAFE/S2B_OPER_SSC_L2VALD_29SQT____20190616.HDR -maskprod /mnt/archive/tempchaouia29sqt/l4a//S2AGRI_L4A_PRD_S2_20190731T061700_V20180911_20190616 -lut /usr/share/sen2agri/crop-type.lut

Output
Main mission: SENTINEL
Tiles: 1
29SQT 3
Single stratum: True
Crop mask for tile 29SQT: /mnt/archive/tempchaouia29sqt/l4a//S2AGRI_L4A_PRD_S2_20190731T061700_V20180911_20190616/TILES/S2AGRI_L4A_V20180911_20190616_T29SQT/IMG_DATA/S2AGRI_L4A_CM_V20180911_20190616_T29SQT.TIF
Increasing NOFILE soft limit from 1024 to 512000
Processing 1 tiles at once
Using 24 threads for each tile
Processor finished in 0:00:01.008767

Errors
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/sen2agri_common.py”, line 572, in execute
self.prepare_site()
File “/usr/bin/CropTypeFused.py”, line 133, in prepare_site
lut = prepare_lut(self.args.refp, self.args.lut)
File “/usr/lib/python2.7/site-packages/sen2agri_common.py”, line 274, in prepare_lut
crop = feature.GetField(“CROP”)
File “/usr/lib64/python2.7/site-packages/osgeo/ogr.py”, line 3015, in GetField
raise ValueError(“Illegal field requested in GetField()”)
ValueError: Illegal field requested in GetField()

Exitcode

1

Have you checked your shp file using the “/var/www/html/scripts/check_shp.py”?