I have used Snappy for a while now, and read lots of Sentinel 1 products, easily.
But I cannot read Sentinel 2 products, i don’t know why. I use the exact same function.
This is my code:
def read(filename):
print(‘>Reading ‘+filename+’…’)
return ProductIO.readProduct(filename)
I give the filename as argument, and it is correct, i checked.
This is the output:
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
SEVERE: org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller: The environment variable LD_LIBRARY_PATH is not set. It must contain the current folder '.'.
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
>Reading S2B_MSIL2A_20191226T112359_N0213_R037_T29TNE_20191226T122946.zip...
SEVERE: org.esa.snap.core.dataio.ProductIO: Error attempting to read S2B_MSIL2A_20191226T112359_N0213_R037_T29TNE_20191226T122946.zip with plugin reader org.esa.s2tbx.dataio.s2.ortho.plugins.Sentinel2L1CProduct_Multi_UTM29N_ReaderPlugIn@63dda940: null
SEVERE: org.esa.snap.core.dataio.ProductIO: Error attempting to read S2B_MSIL2A_20191226T112359_N0213_R037_T29TNE_20191226T122946.zip with plugin reader org.csa.rstb.io.rcm.RCMProductReaderPlugIn@65844c96: null
SEVERE: org.esa.snap.core.dataio.ProductIO: Error attempting to read S2B_MSIL2A_20191226T112359_N0213_R037_T29TNE_20191226T122946.zip with plugin reader org.esa.s1tbx.io.risat1.Risat1ProductReaderPlugIn@54c11750: null