Page 1 of 1

batch processing in l2gen

Posted: Thu Apr 27, 2017 12:21 pm America/New_York
by w_salls
I'm a beginner in SeaDAS looking to batch process atmospheric correction using l2gen on Landsat images. I see a related post (below), but I'm not up to speed on how to use shell or Python with SeaDAS.

Is there a way to use the "ilist" input in the .par file to point to a list of input folders, each containing bands for an image?;hl=batch%20process

batch processing in l2gen

Posted: Thu May 04, 2017 2:41 pm America/New_York
by melliott
Are you familiar with the multilevel processor (mlp)? I believe it might be useful for you.

You can run it within the SeaDAS GUI from the OCSSW menu, once you've installed the OCSSW processors. However, it can also be run from the command line, which would allow you to set up scripts to run it and automate into batch processing. To run it, you enter a command something like:


The program expects a parameter (par) file with a format similar to other OCSSW programs, but with some differences. Each par file must have a [main] section and a section for the final program you want to run. Special processing for intermediate programs needs to be specified also; otherwise, the mlp will use the intermediate program's defaults.

Below is a simple example par file - using MODIS data, but hopefully it helps you get started -  which shows using input data files in different subdirectories of the directory from which the program is run:


From the command line, you can get more information about the mlp with: --help

If you need more help, please let us know!