how to use code to run l2gen correctly

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Re: how to use code to run l2gen correctly

by gnwiii » Thu Nov 02, 2023 3:24 pm America/New_York

A couple notes that may help sort out problems with l2gen:

The benchmark script is useful as a reference and uses a small data set that is easy for others to obtain.

If you get a netcdf output file, it should include lots of detail including the l2gen command line. This has been useful when debugging batch processing scripts, etc.

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 650
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: how to use code to run l2gen correctly

by OB SeaDAS - xuanyang02 » Fri Nov 03, 2023 9:47 am America/New_York

Here is an example of using L1A files as a list --
1) multilevel_processor-forum-L1A.par looks like that
[main]
ifile=/Users/USERNAME/Scenes/MODIS_AQUA/forum/ifile_forum_11_02_23.txt
use_ancillary=1
overwrite=1

[l2gen]
aer_opt=-3

2) ifile_forum_11_02_23.txt looks like this --
/Users/USERNAME/Scenes/MODIS_AQUA/forum/A2023278044500.L1A_LAC
/Users/USERNAME/Scenes/MODIS_AQUA/forum/A2023287060500.L1A_LAC
/Users/USERNAME/Scenes/MODIS_AQUA/forum/A2023289005500.L1A_LAC

3)

Code: Select all

 multilevel_processor par=multilevel_processor-forum-L1A.par
Last edited by OB SeaDAS - xuanyang02 on Fri Nov 03, 2023 9:57 am America/New_York, edited 2 times in total.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 650
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: how to use code to run l2gen correctly

by OB SeaDAS - xuanyang02 » Fri Nov 03, 2023 9:52 am America/New_York

Here is an example of using L1B files as a list --
1) multilevel_processor-forum-L1B.par looks like this --
[main]
ifile=/Users/USERNAME/Scenes/MODIS_AQUA/forum/ifile_L1B_forum_11_02_23.txt
use_ancillary=1
overwrite=1

[l2gen]
aer_opt=-3

2) ifile_L1B_forum_11_02_23.txt looks like this
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231005T044500.L1B.hdf
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231016T005500.L1B.hdf
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231014T060500.L1B.hdf

3) Make sure the following files exsit
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231005T044500.GEO.hdf
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231014T060500.GEO.hdf
/Users/USERNAME/Scenes/MODIS_AQUA/forum/AQUA_MODIS.20231016T005500.GEO.hdf

3)

Code: Select all

 multilevel_processor par=multilevel_processor-forum-L1B.par

Post Reply