Generate modis/L2 data from L1a on Linux
Posted: Thu Sep 21, 2023 5:56 am America/New_York
I processed data with a linux shell script like:
--------------------------------------------------
for .... ;do
modis_GEO command
modis_L1B command
l2gen command
done
---------------------------------------------------
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?
--------------------------------------------------
for .... ;do
modis_GEO command
modis_L1B command
l2gen command
done
---------------------------------------------------
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?