I ran into a few issues trying to process Sentinel-2 MSI L1C granules with l2gen. It appears some files are missing or misnamed. I was able to eventually process a granule but it required creating some symbolic links to make it work.
Here's the command:
l2gen ifile=data/Sentinel-2/2017/S2A_MSIL1C_20170926T160021_N0205_R097_T17RMN_20170926T160750.SAFE/manifest.safe ofile=test_msi.L2
The following is a list of the problems encounter:
1. No msl12_defaults_OC.par
-E- Failed to load parameters for suite OC for sensor MSIS2A
2. Rayleigh files don't match expected name
-E- /home/seadas/ocssw/src/l2gen/rayleigh.c: Error opening file /home/ameredith/seadas-7.5/ocssw/share/msi/rayleigh/rayleigh_msis2a_444_iqu.hdf.
3. Aerosol files don't match expected name
-E- /home/seadas/ocssw/src/l2gen/aerosol.c: Error opening file /home/ameredith/seadas-7.5/ocssw/share/msi/aerosol/aerosol_msi_r30f95v01.hdf
4. No default aerosol_msi_default.hdf
-E- /home/seadas/ocssw/src/l2gen/aerosol.c: Error opening file /home/ameredith/seadas-7.5/ocssw/share/msi/aerosol/aerosol_msi_default.hdf
5. No Sentinel-2B version of Rayleigh files
'Tis on my queue to update them...it's a long queue...:sad:. FYI, there are also changes to the spectral response functions for 2A, so there will be changes to those tables
I've got the new MSI data tree set up now. Update your OCSSW install and you can pull down the data files with:
install_ocssw.py --git-branch=v7.5 --msis2a [--msis2b]
...it *should* work...but since you have the old msi tree, you *may* need to delete it first...