I downloaded a Sentinel 2 l 2A image from the esa science hub. Unfortunately I get the following error when I try to open the xml file in snap 5.0. (S2A_MSIL2A_20170506T105031_N0205_R051_T34WDC_20170506T105029_20170530T104154_report.xml)
One note: after opening a Sentinel2 L2A file, SNAP populates its cache, like it did for L1C.
L1C cache is cleaned periodically according to the setting into SNAP S2TBX options, but the L2A cache seems to be never cleaned, at least up to SNAP v5.0.5.
Setting ‘Delete cache at each start up’ in SNAP software under ‘Tools -> Options -> S2TBX -> Max time in cache’ delete the image cache also for a gpt execution that requires S2TBX cache (e.g. l2a-reader).
By the way, when running many gpt processes (using S2TBX readers) from a bash parallel execution or simultaneously in different shells, each new gpt invocation deletes the entire s2tbx cache folder. The gpt processes already running go to the end without errors, but the resulting output images lack of the last tiles, probably because the cache folder was deleted by another process before the end of the computation.
I would advice to add an option for the ‘Max time in cache’ setting to delete the cache files only at the end of each gpt execution (or when exiting snap application), instead of at the start up. Moreover, a more tidy solution to avoid the reported problem would be to delete only the cache folder created by the process, instead of deleting the entire s2tbx cache folder.
i try to open sentinel2 MSI level 2A but i cant succeed,
its work for sentinel 2 level 1C and landsat 8,
i downloaded this images from https://scihub.copernicus.eu/dhus/#/home ,
i didnt use sen2cor.
thank you .
I have just realized that some time ago we had a similar problem caused by the software used for unzipping the product: WinZip caused some problems and 7zip worked better for SNAP. Perhaps this is the same issue… are you using WinZip? In that case, could you try to use 7zip?
It is possible also that the file is corrupted, try to unzip it again or download again.
Finally, with SNAP version 6 it is also possible to open the product directly by selecting the .zip file without unzip it. This is another option to check.