No integration of sen2cor2.2.1 in SNAP4

Hi,

I have installed successfully SNAP4 and sen2cor 2.2.1 on ubuntu 16.04 LTS. However, there is no integration of sen2cor into SNAP as sen2cor does not appear in the list of plugins and therefore cannot be configured.

Any help shall be greatly appreciated.

1 Like

Same problem here.
I’m on Windows 10, did a fresh installation of all (SNAP4, anaconda, sen2cor2.2.1).
L2A_Process.exe is running fine from command line (currently processing one of my L1C scenes).
But from SNAP Desktop > Tools > Plugins > Available Plugins, there’s nothing with “SEN2COR” (only “Radiometric Uncertainty Tool” appears here, nothing else).
The help suggests “if it doesn’t appear, check your internet connection and your proxy settings from tools/options”, but that’s OK (i.e. “Test connection” states “Connection passed”).

Previously, I had SNAP3 with sen2cor2.1.1 installed, where the SEN2COR plugin appeared and worked – but now, after having all uninstalled (sen2cor2.1.1, anaconda, SNAP3), and with the fresh installation of all components, SNAP4 does not show anything regarding SEN2COR.

I wonder: What kind of auto-magic is used by SNAP to recognize the availability of a properly installed SEN2COR? With that: what’s wrong now with SNAP4 at that stage?

1 Like

I have the same issue. SNAP 3.0 works better!!

Same issue was reported here: http://forum.step.esa.int/t/sen2cor-installation-problem-plugin-missing-in-snap-tools

It is not related to SNAP 3.0 or 4.0 but to the plugin repository. It will be fixed asap.

3 Likes

Hii,

I have the same problem with SNAP latest version. Can you please let me know the process of using command line for performing the same operation.

Thanks!

@ak68883,

keyword is “L2A_Process”, the command line executable. It is located at the anaconda scripts directory (I’m on Windows here),

 C:\>where L2A_Process
 C:\bin\Anaconda2\Scripts\L2A_Process.exe

Take a look at the Software User Manual, S2PAD-VEGA-SUM-0001-2.2.pdf, listed at http://step.esa.int/main/third-party-plugins-2/sen2cor
On page 39 (chapter “3.2.1 Command line interpreter”), the usage is explained; type “L2A_Process --help” from the command line to view it (compare to the usage output at the bottom of this post).

For example (one of my runnings):

C:\mnt>dir /b S2A_USER_PRD_MSIL2A_PDMC_20160508T221741_R008_V20160508T104027_20160508T104027.SAFE
AUX_DATA
DATASTRIP
GRANULE
HTML
INSPIRE.xml
L2A_Manifest.xml
manifest.safe
rep_info
S2A_USER_MTD_SAFL2A_PDMC_20160508T221741_R008_V20160508T104027_20160508T104027.xml
C:\mnt>L2A_Process --resolution 10 --refresh S2A_OPER_PRD_MSIL1C_PDMC_20160508T221741_R008_V20160508T104027_20160508T104027.SAFE

When L2A_Process finishes, the last line of its logging output says:
Progress[%]: 100.00 : Application terminated successfully.

You’ll find the corresponding L2A product output directory adjacent to the L1C input product directory you specified,

C:\mnt>dir /b S2A_USER_PRD_MSIL2A_PDMC_20160508T221741_R008_V20160508T104027_20160508T104027.SAFE
AUX_DATA
DATASTRIP
GRANULE
HTML
INSPIRE.xml
L2A_Manifest.xml
manifest.safe
rep_info
S2A_USER_MTD_SAFL2A_PDMC_20160508T221741_R008_V20160508T104027_20160508T104027.xml

Finally, open SNAP and add the generated L2A product the same way you do it with your L1C products.


C:\>L2A_Process --help
usage: L2A_Process-script.py [-h] [--resolution {10,20,60}] [--sc_only]
                             [--cr_only] [--refresh] [--GIP_L2A GIP_L2A]
                             [--GIP_L2A_SC GIP_L2A_SC]
                             [--GIP_L2A_AC GIP_L2A_AC]
                             directory

Sentinel-2 Level 2A Prototype Processor (Sen2Cor). Version: 2.2.1, created:
2016.04.29, supporting Level-1C product version: 13.1.

positional arguments:
  directory             Directory where the Level-1C input files are located

optional arguments:
  -h, --help            show this help message and exit
  --resolution {10,20,60}
                        Target resolution, can be 10, 20 or 60m. If omitted,
                        all resolutions will be processed
  --sc_only             Performs only the scene classification at 60 or 20m
                        resolution
  --cr_only             Performs only the creation of the L2A product tree, no
                        processing
  --refresh             Performs a refresh of the persistent configuration
                        before start
  --GIP_L2A GIP_L2A     Select the user GIPP
  --GIP_L2A_SC GIP_L2A_SC
                        Select the scene classification GIPP
  --GIP_L2A_AC GIP_L2A_AC
                        Select the atmospheric correction GIPP

Sorry,I think there is no need todo this step.You can click Tools>external tools directly,and you will find it in the list.Just edit it.