Multiple MODIS L2 file processing in Seadas
-
- Posts: 8
- Joined: Fri Apr 01, 2022 4:54 pm America/New_York
Multiple MODIS L2 file processing in Seadas
Hello,
I am new to Seadas and I have 100s of MODIS L1 files to generate L2 products.
It would take a long time to run l2gen one by one for each file in the GUI.
I would like to know if there is a way to run all the files together.
Thanks,
Bijaylaxmi
I am new to Seadas and I have 100s of MODIS L1 files to generate L2 products.
It would take a long time to run l2gen one by one for each file in the GUI.
I would like to know if there is a way to run all the files together.
Thanks,
Bijaylaxmi
Filters:
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Multiple MODIS L2 file processing in Seadas
Yes, multilevel_processor can process multiple files when you choose ifilelist.txt as your ifile, and your ifilelist.txt contains the absolute path of your L1 files like this
/Users/*/Scenes/Aqua/A2010283180500.L1A_LAC
/Users/*/Scenes/Aqua/A2010290181000.L1A_LAC
Here is the help page for multilevel_processor -- https://seadas.gsfc.nasa.gov/help-8.2.0/processors/ProcessMultilevel_processor.html
/Users/*/Scenes/Aqua/A2010283180500.L1A_LAC
/Users/*/Scenes/Aqua/A2010290181000.L1A_LAC
Here is the help page for multilevel_processor -- https://seadas.gsfc.nasa.gov/help-8.2.0/processors/ProcessMultilevel_processor.html
-
- Posts: 8
- Joined: Fri Apr 01, 2022 4:54 pm America/New_York
Re: Multiple MODIS L2 file processing in Seadas
Thank you xuanyang02 for the reply.
I tried to use multilevel-processor. I came across some issues.
1. While uploading the file, a warning appears that the file does not exist. I followed the format you have mentioned to create a iflielist.txt file.
2. Does the multilevel-processor download the ancillary files for all the input files?
I tried to use multilevel-processor. I came across some issues.
1. While uploading the file, a warning appears that the file does not exist. I followed the format you have mentioned to create a iflielist.txt file.
2. Does the multilevel-processor download the ancillary files for all the input files?
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Multiple MODIS L2 file processing in Seadas
1. Please show me the content of your ifilelist.txt and make sure the files listed in your ifilelist.txt do exist
2. Check the checkbox of use_ancillary in the Main Options section, so l2gen will download and use the ancillary files for all the input files
2. Check the checkbox of use_ancillary in the Main Options section, so l2gen will download and use the ancillary files for all the input files
-
- Posts: 8
- Joined: Fri Apr 01, 2022 4:54 pm America/New_York
Re: Multiple MODIS L2 file processing in Seadas
Hello xuanyang02
Here is the content of my ifilelist.txt. For test run, I have added only 2 files.
/Users/gulf/Documents/A2016299190000.L1A_LAC
/Users/gulf/Documents/A2016320191500.L1A_LAC
The files listed are in the Documents. I listed the full path of the files in excel and saved as tab delimited text format.
Here is the content of my ifilelist.txt. For test run, I have added only 2 files.
/Users/gulf/Documents/A2016299190000.L1A_LAC
/Users/gulf/Documents/A2016320191500.L1A_LAC
The files listed are in the Documents. I listed the full path of the files in excel and saved as tab delimited text format.
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Multiple MODIS L2 file processing in Seadas
Sorry that I forgot to mention that you might want to use a plain text editor like vi or emacs to edit the ifilelist.txt. Multilevel_processor is not smart enough to read anything other than plain text in ifilelist.txt.
-
- Posts: 8
- Joined: Fri Apr 01, 2022 4:54 pm America/New_York
Re: Multiple MODIS L2 file processing in Seadas
Hello xuanyang02,
Thank you for the solution. I can input the files now and can run the multilevel_processor.
I would like to know if multilevel processor can run 250m/500m resolution.
Also, I would like to know if l1aextract works on multilevel processor.
Because, I tried to reduce resolution in l2gen miscellaneous and also I tried to subset the files in l1aextract. Both the time the execution failed. Without these 2 operations, everything runs very smoothly.
Thank you for the solution. I can input the files now and can run the multilevel_processor.
I would like to know if multilevel processor can run 250m/500m resolution.
Also, I would like to know if l1aextract works on multilevel processor.
Because, I tried to reduce resolution in l2gen miscellaneous and also I tried to subset the files in l1aextract. Both the time the execution failed. Without these 2 operations, everything runs very smoothly.
-
- Subject Matter Expert
- Posts: 711
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Multiple MODIS L2 file processing in Seadas
l1aextract should work as a processor in multilevel_processor's processor chain. l2gen with resolution as an mlp processor is a little tricky for OCSSW V2022.0. We know V2022.0 has issues for modis_L1B to produce L1B HKM/QKM files with correct names, which will fail l2gen with resolution when it could not find correct HKM/QKM files. So you need R2022.4 for multilevel_processor to work properly with l2gen with resolution.
1. SeaDAS-OCSSW -> Configure OCSSW Location, set OCSSW ROOT to /Users/gulf/ocssw-R2022.4
2. SeaDAS-OCSSW -> Install/Update OC Processors, Choose R2022.4 for OCSSW Tag, Check modisa, and Run
3.SeaDAS-OCSSW -> Multilevel_processor, paste the following content in the Parfile area and Run.
[main]
ifile=/Users/gulf/Document/A2005335192500.L1A_LAC
use_ancillary=1
overwrite=1
odir=/Users/gulf/Documents
[l1aextract]
SWlon=-92.5
SWlat=26
NElon=-87.5
NElat=31
[l2gen]
resolution=250
Sometimes, you need to quit and restart SeaDAS for multilevel_processor to work properly
1. SeaDAS-OCSSW -> Configure OCSSW Location, set OCSSW ROOT to /Users/gulf/ocssw-R2022.4
2. SeaDAS-OCSSW -> Install/Update OC Processors, Choose R2022.4 for OCSSW Tag, Check modisa, and Run
3.SeaDAS-OCSSW -> Multilevel_processor, paste the following content in the Parfile area and Run.
[main]
ifile=/Users/gulf/Document/A2005335192500.L1A_LAC
use_ancillary=1
overwrite=1
odir=/Users/gulf/Documents
[l1aextract]
SWlon=-92.5
SWlat=26
NElon=-87.5
NElat=31
[l2gen]
resolution=250
Sometimes, you need to quit and restart SeaDAS for multilevel_processor to work properly