Processing level 0 MODIS Aqua Product- nlw bands

Please enter here to ask a question about any NASA Science related topics!
OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 144
Joined: Tue Feb 09, 2021 5:42 pm America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by OB SeaDAS - xuanyang02 » Wed Aug 18, 2021 9:39 am America/New_York

Let's try this:

Code: Select all

export OCSSWROOT=/home/user/ocssw
source $OCSSWROOT/OCSSW_bash.env
l2gen par=l2gen-tmpParFile-nlw.par

Tags:

fatemahfa
Posts: 18
Joined: Wed Oct 30, 2019 8:44 am America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by fatemahfa » Thu Aug 19, 2021 5:21 am America/New_York

HELLO DEAR;
I did this one and got the following message and when I tried to open the level 2 product in SEADAS it is showing error message:
user@user-OptiPlex-9020:~/Desktop/23-12-2008$ export OCSSWROOT=/home/user/ocssw
user@user-OptiPlex-9020:~/Desktop/23-12-2008$ source $OCSSWROOT/OCSSW_bash.env
user@user-OptiPlex-9020:~/Desktop/23-12-2008$ l2gen par=l2gen-tmpParFile-nlw.par
Input file /home/user/Desktop/23-12-2008/A2008358095000.L1B_LAC is MODIS Aqua Level-1B HDF-EOS product.
Loading default parameters from /home/user/ocssw/share/common/msl12_defaults.par
Loading default parameters for MODISA from /home/user/ocssw/share/modis/msl12_defaults.par
Loading default sub-sensor parameters for MODISA from /home/user/ocssw/share/modis/aqua/msl12_defaults.par
Loading parameters for suite OC from /home/user/ocssw/share/modis/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for MODISA


Loading characteristics for MODISA
Opening sensor information file /home/user/ocssw/share/modis/aqua/msl12_sensor_info.dat
Bnd Lam Fo Tau_r k_oz k_no2 t_co2 awhite aw bbw
0 412.000 172.912 3.099e-01 1.987e-03 5.814e-19 1.000e+00 1.000e+00 2.030e-02 2.884e-03
1 443.000 187.622 2.367e-01 3.189e-03 4.985e-19 1.000e+00 1.000e+00 1.110e-02 2.181e-03
2 469.000 205.878 1.914e-01 8.745e-03 3.938e-19 1.000e+00 1.000e+00 1.034e-02 1.749e-03
3 488.000 194.933 1.592e-01 2.032e-02 2.878e-19 1.000e+00 1.000e+00 1.676e-02 1.447e-03
4 531.000 185.747 1.126e-01 6.838e-02 1.525e-19 1.000e+00 1.000e+00 4.494e-02 1.014e-03
5 547.000 186.539 9.906e-02 8.622e-02 1.194e-19 1.000e+00 1.000e+00 5.491e-02 8.886e-04
6 555.000 183.869 9.432e-02 9.553e-02 9.445e-20 1.000e+00 1.000e+00 5.839e-02 8.443e-04
7 645.000 157.811 5.082e-02 7.382e-02 1.382e-20 1.000e+00 9.133e-01 3.458e-01 4.469e-04
8 667.000 152.255 4.443e-02 4.890e-02 7.065e-21 1.000e+00 8.921e-01 4.923e-01 3.900e-04
9 678.000 148.052 4.146e-02 3.787e-02 8.304e-21 1.000e+00 8.783e-01 5.116e-01 3.634e-04
10 748.000 128.065 2.849e-02 1.235e-02 2.157e-21 1.000e+00 7.832e-01 2.800e+00 2.470e-04
11 859.000 97.174 1.613e-02 2.347e-03 6.212e-23 1.000e+00 6.519e-01 4.396e+00 1.384e-04
12 869.000 95.824 1.540e-02 1.936e-03 7.872e-23 1.000e+00 6.403e-01 4.727e+00 1.320e-04
13 1240.000 45.467 3.617e-03 0.000e+00 0.000e+00 9.994e-01 0.000e+00 1.147e+02 3.021e-05
14 1640.000 23.977 1.219e-03 0.000e+00 0.000e+00 9.890e-01 0.000e+00 6.689e+02 1.000e-05
15 2130.000 9.885 4.286e-04 0.000e+00 0.000e+00 9.696e-01 0.000e+00 2.810e+03 3.465e-06

Bnd Lam
16 3750.000
17 3959.000
18 4050.000
19 6715.000
20 7325.000
21 8550.000
22 11000.000
23 12000.000

Internal data compression requested at compression level: 4
Opening filter file /home/user/ocssw/share/modis/msl12_filter.dat
Setting 7 x 5 straylight filter on HILT mask

Filter Kernel
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1

Minimum fill set to 1 pixels


Setting 7 x 5 straylight filter on CLDICE mask

Filter Kernel
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1

Minimum fill set to 1 pixels


Reading Thuillier_F0.dat
Processing at 1000 meter resolution.
1000-meter file: /home/user/Desktop/23-12-2008/A2008358095000.L1B_LAC

Allocated 2365502 bytes in L1 record.
Allocated 920720 bytes in L2 record.

Opening: /home/user/Desktop/23-12-2008/A2008358095000.L2_LAC_OC


The following products will be included in /home/user/Desktop/23-12-2008/A2008358095000.L2_LAC_OC.
0 Kd_490
1 angstrom
2 chlor_a
3 ipar
4 nLw_412
5 nLw_443
6 nLw_469
7 nLw_488
8 nLw_531
9 nLw_547
10 nLw_555
11 nLw_645
12 nLw_667
13 nLw_678
14 nlw_748
15 nflh
16 par
17 pic
18 poc
19 l2_flags
-E- /home/seadas/ocssw/src/l2gen/l2_generic.c line 458: product nlw_748 not found.
-E- l2gen: Error opening /home/user/Desktop/23-12-2008/A2008358095000.L2_LAC_OC for writing.
user@user-OptiPlex-9020:~/Desktop/23-12-2008$

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 144
Joined: Tue Feb 09, 2021 5:42 pm America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by OB SeaDAS - xuanyang02 » Thu Aug 19, 2021 11:08 am America/New_York

Make sure it's nLw_748 (not nlw_748) in your l2gen-tmpParFile-nlw.par file.

fatemahfa
Posts: 18
Joined: Wed Oct 30, 2019 8:44 am America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by fatemahfa » Thu Aug 19, 2021 4:34 pm America/New_York

Thank you a lot , everything worked now

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 144
Joined: Tue Feb 09, 2021 5:42 pm America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by OB SeaDAS - xuanyang02 » Thu Aug 19, 2021 4:51 pm America/New_York

You might want to add the following lines to your .bashrc file to configure your command line environment, if you are going to run l2gen or other OCSSW processors on command line:

Code: Select all

export OCSSWROOT=/home/user/ocssw
source $OCSSWROOT/OCSSW_bash.env

fatemahfa
Posts: 18
Joined: Wed Oct 30, 2019 8:44 am America/New_York

Re: Processing level 0 MODIS Aqua Product- nlw bands

by fatemahfa » Mon Aug 23, 2021 7:13 am America/New_York

OK thank you sure
I tried also replacing the nLw_vvv with nLw_nnn and I got all the infrared bands.
Thanks for helping and supporting

Post Reply