Processing level 0 MODIS Aqua Product- nlw bands
Processing level 0 MODIS Aqua Product- nlw bands
Good Evening all;
I am using MODIS Aqua images for ocean studies purposes. I used MODIS level 0 image and processed it to MODIS Level 2 image and in the l2gen command I selected all the bands. However the output does not show bands above 678 wave length and I want the band at nlw 748 to calculate modified flousoscence hight. Could you please guide me on that?
Kind Regards
I am using MODIS Aqua images for ocean studies purposes. I used MODIS level 0 image and processed it to MODIS Level 2 image and in the l2gen command I selected all the bands. However the output does not show bands above 678 wave length and I want the band at nlw 748 to calculate modified flousoscence hight. Could you please guide me on that?
Kind Regards
Tags:
-
- Subject Matter Expert
- Posts: 595
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 1 time
Re: Processing level 0 MODIS Aqua Product- nlw bands
1) In l2gen GUI, click "Products*" tab, and check the box next to nLw in the "Product Selector" section
2) In l2gen GUI, click the "Main" tab. In the "Parfile" section, click the "Save Parameters" button and save the file as l2gen-tmpParFile-nlw.par in the directory where your data is, in my case ~/Scenes/MODIS_AQUA/run
3) On the command line
2) In l2gen GUI, click the "Main" tab. In the "Parfile" section, click the "Save Parameters" button and save the file as l2gen-tmpParFile-nlw.par in the directory where your data is, in my case ~/Scenes/MODIS_AQUA/run
3) On the command line
Code: Select all
cd ~/Scenes/MODIS_AQUA/run (your data directory)
vi l2gen-tmpParFile-nlw.par
Last edited by OB SeaDAS - xuanyang02 on Mon Aug 16, 2021 11:28 am America/New_York, edited 6 times in total.
-
- Subject Matter Expert
- Posts: 595
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 1 time
Re: Processing level 0 MODIS Aqua Product- nlw bands
Thank you a lot for the detailed explanation
could you please guide me how to write nlw_748 in the command line because I didn't know how to modify it.
could you please guide me how to write nlw_748 in the command line because I didn't know how to modify it.
- Attachments
-
- image.pdf
- (205.9 KiB) Downloaded 54 times
Re: Processing level 0 MODIS Aqua Product- nlw bands
And how do I type the last command also
Thank you for your time
Thank you for your time
- Attachments
-
- l2genpar=command.pdf
- (198.87 KiB) Downloaded 48 times
-
- Subject Matter Expert
- Posts: 595
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 1 time
Re: Processing level 0 MODIS Aqua Product- nlw bands
In vi, you use "i" to insert text. Here is some help with vi: https://www.guru99.com/the-vi-editor.html#3
I assume you have ocssw installed under /home/user, judging from a previous post
Code: Select all
/home/user/ocssw/bin/l2gen par=l2gen-tmpParFile-nlw.par
I assume you have ocssw installed under /home/user, judging from a previous post
Re: Processing level 0 MODIS Aqua Product- nlw bands
Thank you a lot the link was really helpful.
I was searching for the l2gen_par in the OCSSW but showing no such file or directory.
Do you know why?
kind regards
I was searching for the l2gen_par in the OCSSW but showing no such file or directory.
Do you know why?
kind regards
- Attachments
-
- OCSW-L2GEN.pdf
- (210.02 KiB) Downloaded 86 times
-
- Subject Matter Expert
- Posts: 595
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 1 time
Re: Processing level 0 MODIS Aqua Product- nlw bands
There is a space between l2gen and par.
We are trying to run the command l2gen with the par file "l2gen-tmpParFile-nlw.par", not l2gen_par.
Since l2gen was not recognized, I was suggesting you relpace "l2gen" with "/home/user/ocssw/bin/l2gen".
In your OCSW-L2GEN.pdf, I saw part of the errors on your terminal containing "is not defined", "12_input.c: Error reading program option", "or parsing input parameters". Can you copy that error and paste here?
BTW, when you attach an image, please choose "Place inline" so we can see the image without downloading your pdf file.
Code: Select all
/home/user/ocssw/bin/l2gen par=l2gen-tmpParFile-nlw.par
Since l2gen was not recognized, I was suggesting you relpace "l2gen" with "/home/user/ocssw/bin/l2gen".
In your OCSW-L2GEN.pdf, I saw part of the errors on your terminal containing "is not defined", "12_input.c: Error reading program option", "or parsing input parameters". Can you copy that error and paste here?
BTW, when you attach an image, please choose "Place inline" so we can see the image without downloading your pdf file.
Re: Processing level 0 MODIS Aqua Product- nlw bands
Thank you for your reply
I tried to run it again and here is the error:
user@user-OptiPlex-9020:~/Desktop/23-12-2008$ /home/user/ocssw/bin/l2gen par=l2gen-tmpParFile-nlw.par
-E- OCDATAROOT environment variable is not defined.
-E- /home/seadas/ocssw/src/l2gen/msl12_input.c: Error reading program options.
-E- /home/user/ocssw/bin/l2gen: Error parsing input parameters.
I tried to run it again and here is the error:
user@user-OptiPlex-9020:~/Desktop/23-12-2008$ /home/user/ocssw/bin/l2gen par=l2gen-tmpParFile-nlw.par
-E- OCDATAROOT environment variable is not defined.
-E- /home/seadas/ocssw/src/l2gen/msl12_input.c: Error reading program options.
-E- /home/user/ocssw/bin/l2gen: Error parsing input parameters.
Re: Processing level 0 MODIS Aqua Product- nlw bands
It looks like you are struggling with the linux command line. Rather than using the forum for step-by-step command-line help, you will find it better in the long run to spend some time with a good command-line tutorial or online course. The SeaDAS GUI is very useful, but when things aren't working, linux command line tools are often needed. Many applications require running similar calculations on many files, Linux command-line tools are much faster for such tasks than running the jobs one-by-one in the GUI. Often the best way to get help from online forums is to paste text from a terminal in your post. This makes it easier for people to quote sections of your post and also makes it possible for others with the same issue to find your posts.
A good place to start is <https://linuxcommand.org>. Linux users are generally eager to help new users get started. Look for a linux user group in your area and ask about online resources and tutorials.