How to save the command prompt code after processing using sen2cor

After processing in the command prompt using sen2cor, how to save the code.Ant suggestions please.


if you want the entire output, you simply add the textfile you want to create at the end of the command. For example

L2A_Process S2A_MSIL2A_20180505T103021_N0207_R108_T32UNU_20180505T124726.SAFE > output.txt


This produces this kind of txt: output.txt

There are more options, e.g. if you still want to see the output of sen2cor in the shell:

Thank you ABraun.

Do we need to code for single image and wait for completion for processing second image. Is there any suggestible way to input multiple imageries and providing a output directory. And finally which path to use for saving the code.

It would be helpful, because i have around 60 S2 imageries to pre-process.

Thank you :slight_smile:

there are plenty of topics on that:

1 Like

Thank you.

I have gone through them. But I was exploring on this Sen2cor in batch processing with command line. This was the result.


Am I missing some command lines?

There might be many topics as well on this. But my apologize, I didn’t find.

“for folder in all_folders” sounds like a python command, you cannot enter this in the Windows shell.

1 Like

Thank you for verification on python command.

The output.text file at the end of command line didn’t work. But with following steps -getting code would be easier.

1.Right click on the command promt >edit> select all>copy
2. Now paste into a text file. Works perfectly.

The text file resultResult.txt (19.2 KB)