batch processing in l2gen

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
w_salls
Posts: 1
Joined: Wed Apr 26, 2017 1:07 pm America/New_York
Answers: 0

batch processing in l2gen

by w_salls » Thu Apr 27, 2017 12:21 pm America/New_York

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?

https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?pid=27992;hl=batch%20process

Tags:

melliott
Posts: 11
Joined: Tue Jun 08, 2010 2:23 pm America/New_York
Answers: 0

batch processing in l2gen

by melliott » Thu May 04, 2017 2:41 pm America/New_York

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:

> multilevel_processor.py NAME_OF_MLP_PAR_FILE

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:

[main]
ifile=data1/A2012114175000.L1B_LAC,data2/A2012114172500.L1B_LAC
[l2gen]
l2prod=chlor_a


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

If you need more help, please let us know!

Matt

Post Reply