ASK for detailed steps of atmospheric correction by sen2cor tool or the snap

Who successfully carried out the atmospheric correction by sen2cor tool or the snap?
Could you provide detailed steps,please?

  1. Install the plugin

  2. Select a resolution

  3. Run the plugin

Actually you can’t do much wrong with it because there are no other steps or parameters.
Installing can be a bit tricky if you are not experienced with Python but in the end if you follow the steps it should work.
Please see the manual for more information.

1 Like

I am glad to receive your mail. I have been installed in accordance with the tutorial,but there are same errors.Would you can help me ??Thanks in advance.

and it will stop with 1%

this is my data

the access violation indicates that there are no writing privilleges for the tool somewhere.

Can you start your command line with administrator rights and try to run the tool from there?

Just open your command line with right-click (run as administrator) in the folder where the folder with your S2 data (.safe) is located and type
L2A_Process --resolution 60 nameofthefolder

See also here:

There is still the same error

then something is wrong with the sen2cor installation.

Are there other python versions on your computer?

only 2.7

can you please type “PATH” in your command line and show me the full output?

IPP.xml -> C:\Users\Administrator\documents\sen2cor\cfg
Setting environment for sen2cor …
Setting environment variable GDAL_DATA:拒绝访问。
Setting environment variable SEN2COR_HOME:拒绝访问。
Setting environment variable SEN2COR_BIN:拒绝访问。
Congratulations, you are done!

  • you can call the processor from everywhere via: “L2A_Process”
  • you will find the default configuration called “L2A_GIPP.xml” under:

Installation sucessfully performed.

C:\Users\Administrator\Documents\sen2cor-2.2.1>L2A_Process --help
usage: L2A_Process [-h] [–resolution {10,20,60}] [–sc_only] [–cr_only]
[–refresh] [–GIP_L2A GIP_L2A] [–GIP_L2A_SC GIP_L2A_SC]

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
–cr_only Performs only the creation of the L2A product tree, no
–refresh Performs a refresh of the persistent configuration
before start
–GIP_L2A GIP_L2A Select the user GIPP
Select the scene classification GIPP
Select the atmospheric correction GIPP


D:>cd s2

D:\S2>L2A_Process S2A_OPER_PRD_MSIL1C_PDMC_20160821T181449_R075_V20160821T030542
_20160821T031304.SAFE --resolution 60

Sentinel-2 Level 2A Prototype Processor (Sen2Cor), 2.2.1, created: 2016.04.29 st
arted …
Traceback (most recent call last):
File “C:\Anaconda2\Scripts\”, line 11, in
load_entry_point(‘sen2cor==2.2.1’, ‘console_scripts’, ‘L2A_Process’)()
File “C:\Anaconda2\lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_Proce”, line 221, in main
result = config.readPreferences()
File “C:\Anaconda2\lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_Confi”, line 3257, in readPreferences
File “C:\Anaconda2\lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_XmlPa”, line 21, in init
doc = objectify.parse(config.configFn)
File “src\lxml\lxml.objectify.pyx”, line 1838, in lxml.objectify.parse (src\lx
File “src\lxml\lxml.etree.pyx”, line 3427, in lxml.etree.parse (src\lxml\lxml.
File “src\lxml\parser.pxi”, line 1793, in lxml.etree._parseDocument (src\lxml
File “src\lxml\parser.pxi”, line 1819, in lxml.etree._parseDocumentFromURL (sr
File “src\lxml\parser.pxi”, line 1723, in lxml.etree._parseDocFromFile (src\lx
File “src\lxml\parser.pxi”, line 1126, in lxml.etree._BaseParser._parseDocFrom
File (src\lxml\lxml.etree.c:108614)
File “src\lxml\parser.pxi”, line 584, in lxml.etree._ParserContext._handlePars
eResultDoc (src\lxml\lxml.etree.c:102150)
File “src\lxml\parser.pxi”, line 694, in lxml.etree._handleParseResult (src\lx
File “src\lxml\parser.pxi”, line 622, in lxml.etree._raiseParseError (src\lxml
IOError: Error reading file ‘c:\anaconda2\lib\site-packages\sen2cor-2.2.1-py2.7.
egg\cfg\L2A_GIPP.xml’: failed to load external entity “file:/c:/anaconda2/lib/si


is the missing file located in

I don’t understand why the path is wrong,cfg is in the sen2cor

is the mentioned xml file also in the cfg folder?


I can’t imagine any other problem, sorry.

ok,thank you all the same

I changed the path