MajaFactoryException : No factory to handle - Sentinel 2 32TNS tile not managed by MAJA for early 2021
I use MAJA executable, with MAJA v4.7.1.
I have already ran MAJA on several tiles through year 2022 and 2023, with a configuration similar to the one I used for tile 32TNS in early 2021, and have been able to generate valid L2A.
Now trying to run MAJA for a whole year (2021) over a few tiles (including T32TNS) I encounter an early issue when trying to process Sentinel 2 L1C from January 2021. You can find the end of logs attached, including the section in which something goes wrong. Hereafter a short highlight of the section with the real issue, I guess, in the parsing of the MTD_DS.xml file.
2023-12-13 16:11:34 [1693742] INFO MAJA 4.7 create:52 Trying : MajaSentinel2L1ImageInformations 2023-12-13 16:11:34 [1693742] INFO MAJA 4.7 initialize:140 Start Sentinel2 L1 ImageInformationProvider work/maja_inputs/S2A_MSIL1C_20210225T102021_N0209_R065_T32TNS_20210225T123254.SAFE/MTD_MSIL1C.xml... 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:111 Loading work/maja_inputs/S2A_MSIL1C_20210225T102021_N0209_R065_T32TNS_20210225T123254.SAFE/MTD_MSIL1C.xml 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:87 Satellite detected in metadata : Sentinel-2A 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:106 The PSD version '14' has been detected in the L1C product <work/maja_inputs/S2A_MSIL1C_20210225T102021_N0209_R065_T32TNS_20210225T123254.SAFE/MTD_MSIL1C.xml'. 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:217 GranuleId: S2A_OPER_MSI_L1C_TL_VGS2_20210225T123254_A029663_T32TNS_N02.09 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:227 Quantification : 10000.0 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B01 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B02 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B03 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B04 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B05 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B06 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B07 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B08 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B8A to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B09 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B10 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B11 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:244 Adding GRANULE/L1C_T32TNS_A029663_20210225T102740/IMG_DATA/T32TNS_20210225T102021_B12 to list of images 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 initialize:168 Old S2 PSD format detected 2023-12-13 16:11:34 [1693742] INFO MAJA 4.7 initialize:180 Datastrip xml filename : work/maja_inputs/S2A_MSIL1C_20210225T102021_N0209_R065_T32TNS_20210225T123254.SAFE/DATASTRIP/DS_VGS2_20210225T123254_S20210225T102740/MTD_DS.xml 2023-12-13 16:11:34 [1693742] DEBUG MAJA 4.7 __init__:111 Loading work/maja_inputs/S2A_MSIL1C_20210225T102021_N0209_R065_T32TNS_20210225T123254.SAFE/DATASTRIP/DS_VGS2_20210225T123254_S20210225T102740/MTD_DS.xml 2023-12-13 16:11:36 [1693742] DEBUG MAJA 4.7 create:66 'NoneType' object has no attribute 'get'
From what I understood this issue is most likely linked to issues 284 and 351. I did a quick investigation and it seems I can run MAJA on L1C products up to april 2021, and not on products from February 2021, which would correspond to a switch from baseline 02.09 to baseline 03.00. Will there be a fix for that issue ? And will the reprocessing campaign from ESA lead to S2 L1C that MAJA can manage (if yes which MAJA version ?) ?