Page 1 of 1

Generate modis/L2 data from L1a on Linux

Posted: Thu Sep 21, 2023 5:56 am America/New_York
by ywystu
I processed data with a linux shell script like:
for .... ;do
modis_GEO command
modis_L1B command
l2gen command
Because I can't get the output file name from the last command, I retrieve the newest file in the output directory as the input file of the next command. And now I find a problem: Sometimes the program will raise errors due to the network connecting, which is reasonable. I will record these bad processing and deal with them later. However, the mismatched geofile sometimes can be used in the l2gen command, and that means l2gen command may use the wrong geofile from the last loop. I can't identify which files have this issues.

How do I solve the problem? or Can I get the default output name in order to check the files?

Re: Generate modis/L2 data from L1a on Linux

Posted: Thu Sep 21, 2023 10:29 am America/New_York
by OB SeaDAS - xuanyang02
Here are a few options --
1. You can use get_output_name to get the file name of the command (TARGET_PROGRAM).

Code: Select all

2. You can also provide the geofile name and/or output file name

Code: Select all


Code: Select all

modis_L1B L1AFILE  GEOFILE -o "Output L1B 1KM filename"

Code: Select all

l2gen ifile="input L1 file name" geofile="input L1 geolocation file name" ofile="output file name"
Here is the help pages --

3. You can also try multilevel_processor --

Code: Select all

multilevel_processor par=par_file
# Sample par_file for multilevel_processor.
# final processing level