Page 1 of 1

Using l2gen for VIIRS scene: numElemens is less than one

Posted: Fri Aug 04, 2017 10:00 am America/New_York
by juancho.gossn
Hi there,

I'm for the first time trying to process a VIIRS scene (I'm using GUI for the moment). I've went through L1A + GEO -> L1B (already added the correct "terrain_path" and the "dem" folder); but now I'm stack with L2GEN, which gives me back "execution exception: java.lang.IllegalArgumentException: numElemens is less than one". The L2 file is generated but it's all "masked" (NAVWARN 100% NAVFAIL 100% and the bow-tie mask about 12%) . I've noticed that after executing update_processors.py and update_luts.py I still miss the xcal files inside the viirsn directory. Might this be the problem?

I'm using aer_opt = -1 and choose the SWIR bands 1238 and 2257, since I'm working with the La Plata Estuary (turbid), but also have tried other options and get the same results.

Any help/clue will be kindly appreciated.

Thanks!! :grin:

Juancho

execution exception: java.lang.IllegalArgumentException: numElems is less than one
Input file /home/juancho/Desktop/ManchaImagenes/VIIRS25SEP2016/V2016269175400.L1B_LAC.nc is VIIRS L1B NetCDF4.
Loading default parameters from /home/juancho/seadas-7.4/ocssw/run/data/common/msl12_defaults.par
Loading default parameters for VIIRSN from /home/juancho/seadas-7.4/ocssw/run/data/viirsn/msl12_defaults.par
Loading parameters for suite OC from /home/juancho/seadas-7.4/ocssw/run/data/viirsn/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for VIIRSN

Loading characteristics for VIIRSN
Opening sensor information file /home/juancho/seadas-7.4/ocssw/run/data/viirsn/msl12_sensor_info.dat
  Bnd   Lam       Fo    Tau_r     k_oz    k_no2    t_co2   awhite       aw      bbw
    0  410.000  171.134 3.175e-01 6.080e-04 5.951e-19 1.000e+00 1.000e+00 1.528e-01 2.931e-03
    1  443.000  190.214 2.328e-01 3.349e-03 4.997e-19 1.000e+00 1.000e+00 3.484e-02 2.144e-03
    2  486.000  198.774 1.600e-01 2.000e-02 2.990e-19 1.000e+00 1.000e+00 7.198e-02 1.447e-03
    3  551.000  184.122 9.738e-02 8.937e-02 1.041e-19 1.000e+00 1.000e+00 9.721e-02 8.703e-04
    4  671.000  150.456 4.395e-02 4.406e-02 1.015e-20 1.000e+00 8.871e-01 4.755e-01 3.842e-04
    5  745.000  127.643 2.865e-02 1.111e-02 2.547e-21 1.000e+00 7.872e-01 2.806e+00 2.481e-04
    6  862.000   96.031 1.594e-02 2.319e-03 4.358e-22 1.000e+00 6.486e-01 4.590e+00 1.361e-04
    7 1238.000   45.606 3.650e-03 0.000e+00 0.000e+00 9.994e-01 0.000e+00 1.370e+02 3.044e-05
    8 1601.000   25.084 1.305e-03 0.000e+00 0.000e+00 9.890e-01 0.000e+00 7.857e+02 1.070e-05
    9 2257.000    7.732 3.294e-04 0.000e+00 0.000e+00 9.696e-01 0.000e+00 2.180e+03 2.656e-06

  Bnd   Lam
   10 3700.000
   11 4050.000
   12 8550.000
   13 10763.000
   14 12013.000

Internal data compression requested at compression level: 4
Opening filter file /home/juancho/seadas-7.4/ocssw/run/data/viirsn/msl12_filter.dat
Setting 25 x 7 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 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 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 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 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 25 x 7 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 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 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 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 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

Allocated 3677172 bytes in L1 record.
Allocated 1856012 bytes in L2 record.

Opening: /home/juancho/Desktop/ManchaImagenes/VIIRS25SEP2016/V2016269175400.L2_SNPP_OC.nc
Reading Thuillier_F0.dat

The following products will be included in /home/juancho/Desktop/ManchaImagenes/VIIRS25SEP2016/V2016269175400.L2_SNPP_OC.nc.
0 Rrs_1238
1 Rrs_1601
2 Rrs_2257
3 Rrs_745
4 Rrs_862
5 Rrs_410
6 Rrs_443
7 Rrs_486
8 Rrs_551
9 Rrs_671
10 l2_flags

Begin l2gen Version 8.10.3-r0 Processing
Sensor is VIIRSN
Sensor ID is 14
Sensor has 10 reflective bands
Sensor has 5 emmissive bands
Number of along-track detectors per band is 16
Number of input pixels per scan is 3200
Processing pixels 1 to 3200 by 1
Processing scans 1 to 3248 by 1
Ocean processing enabled
Land processing enabled
Atmospheric correction enabled

Begin MSl12 processing at 2017216103835000

Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Allocated 3677172 bytes in L1 record.
Loading radiance to brightness temperature from /home/juancho/seadas-7.4/ocssw/run/data/viirsn/cal/bt_viirsn.hdf
Loading land mask file from /home/juancho/seadas-7.4/ocssw/run/data/common/landmask_GMT15ARC.nc
Loading bathymetry mask file from /home/juancho/seadas-7.4/ocssw/run/data/common/watermask.dat
Loading ice mask file from /home/juancho/seadas-7.4/ocssw/run/var/anc/2016/269/N201626900_SEAICE_NSIDC_24h.hdf
Loaded near real time NSIDC ice HDF file.
Loading elevation file from /home/juancho/seadas-7.4/ocssw/run/data/common/ETOPO1_ocssw.nc
Loading climatology file /home/juancho/seadas-7.4/ocssw/run/data/common/sst_climatology.hdf
Loading Daily V2 0.25-deg OI Reynolds SST reference from /home/juancho/seadas-7.4/ocssw/run/var/anc/2016/269/N2016269_SST_OIV2AV_24h.nc

Loading SSS reference from Climatology file: /home/juancho/seadas-7.4/ocssw/run/data/common/sss_climatology_woa2009.hdf

Using 2257.0 nm channel for cloud flagging over water.
Using  410.0 nm channel for cloud flagging over land.

Processing scan #     0 (1 of 3248) after      0 seconds
Processing scan #    50 (51 of 3248) after      2 seconds
Processing scan #   100 (101 of 3248) after      3 seconds
Processing scan #   150 (151 of 3248) after      4 seconds
Processing scan #   200 (201 of 3248) after      6 seconds
Processing scan #   250 (251 of 3248) after      7 seconds
Processing scan #   300 (301 of 3248) after      8 seconds
Processing scan #   350 (351 of 3248) after     10 seconds
Processing scan #   400 (401 of 3248) after     11 seconds
Processing scan #   450 (451 of 3248) after     13 seconds
Processing scan #   500 (501 of 3248) after     14 seconds
Processing scan #   550 (551 of 3248) after     15 seconds
Processing scan #   600 (601 of 3248) after     17 seconds
Processing scan #   650 (651 of 3248) after     18 seconds
Processing scan #   700 (701 of 3248) after     19 seconds
Processing scan #   750 (751 of 3248) after     21 seconds
Processing scan #   800 (801 of 3248) after     22 seconds
Processing scan #   850 (851 of 3248) after     24 seconds
Processing scan #   900 (901 of 3248) after     25 seconds
Processing scan #   950 (951 of 3248) after     26 seconds
Processing scan #  1000 (1001 of 3248) after     28 seconds
Processing scan #  1050 (1051 of 3248) after     29 seconds
Processing scan #  1100 (1101 of 3248) after     31 seconds
Processing scan #  1150 (1151 of 3248) after     32 seconds
Processing scan #  1200 (1201 of 3248) after     33 seconds
Processing scan #  1250 (1251 of 3248) after     35 seconds
Processing scan #  1300 (1301 of 3248) after     36 seconds
Processing scan #  1350 (1351 of 3248) after     37 seconds
Processing scan #  1400 (1401 of 3248) after     39 seconds
Processing scan #  1450 (1451 of 3248) after     40 seconds
Processing scan #  1500 (1501 of 3248) after     42 seconds
Processing scan #  1550 (1551 of 3248) after     43 seconds
Processing scan #  1600 (1601 of 3248) after     44 seconds
Processing scan #  1650 (1651 of 3248) after     46 seconds
Processing scan #  1700 (1701 of 3248) after     47 seconds
Processing scan #  1750 (1751 of 3248) after     48 seconds
Processing scan #  1800 (1801 of 3248) after     50 seconds
Processing scan #  1850 (1851 of 3248) after     51 seconds
Processing scan #  1900 (1901 of 3248) after     53 seconds
Processing scan #  1950 (1951 of 3248) after     54 seconds
Processing scan #  2000 (2001 of 3248) after     55 seconds
Processing scan #  2050 (2051 of 3248) after     57 seconds
Processing scan #  2100 (2101 of 3248) after     58 seconds
Processing scan #  2150 (2151 of 3248) after     59 seconds
Processing scan #  2200 (2201 of 3248) after     61 seconds
Processing scan #  2250 (2251 of 3248) after     62 seconds
Processing scan #  2300 (2301 of 3248) after     64 seconds
Processing scan #  2350 (2351 of 3248) after     65 seconds
Processing scan #  2400 (2401 of 3248) after     66 seconds
Processing scan #  2450 (2451 of 3248) after     68 seconds
Processing scan #  2500 (2501 of 3248) after     69 seconds
Processing scan #  2550 (2551 of 3248) after     70 seconds
Processing scan #  2600 (2601 of 3248) after     72 seconds
Processing scan #  2650 (2651 of 3248) after     73 seconds
Processing scan #  2700 (2701 of 3248) after     75 seconds
Processing scan #  2750 (2751 of 3248) after     76 seconds
Processing scan #  2800 (2801 of 3248) after     77 seconds
Processing scan #  2850 (2851 of 3248) after     79 seconds
Processing scan #  2900 (2901 of 3248) after     80 seconds
Processing scan #  2950 (2951 of 3248) after     81 seconds
Processing scan #  3000 (3001 of 3248) after     83 seconds
Processing scan #  3050 (3051 of 3248) after     84 seconds
Processing scan #  3100 (3101 of 3248) after     86 seconds
Processing scan #  3150 (3151 of 3248) after     87 seconds
Processing scan #  3200 (3201 of 3248) after     88 seconds

Percentage of pixels flagged:
Flag # 1:          ATMFAIL          0   0.0000
Flag # 2:             LAND          0   0.0000
Flag # 3:         PRODWARN          0   0.0000
Flag # 4:          HIGLINT          0   0.0000
Flag # 5:             HILT          0   0.0000
Flag # 6:         HISATZEN          0   0.0000
Flag # 7:           COASTZ          0   0.0000
Flag # 8:            SPARE          0   0.0000
Flag # 9:       STRAYLIGHT          0   0.0000
Flag #10:           CLDICE          0   0.0000
Flag #11:        COCCOLITH          0   0.0000
Flag #12:          TURBIDW          0   0.0000
Flag #13:         HISOLZEN          0   0.0000
Flag #14:            SPARE          0   0.0000
Flag #15:            LOWLW          0   0.0000
Flag #16:          CHLFAIL          0   0.0000
Flag #17:          NAVWARN   10393600 100.0000
Flag #18:           ABSAER          0   0.0000
Flag #19:            SPARE          0   0.0000
Flag #20:       MAXAERITER          0   0.0000
Flag #21:         MODGLINT          0   0.0000
Flag #22:          CHLWARN          0   0.0000
Flag #23:          ATMWARN          0   0.0000
Flag #24:            SPARE          0   0.0000
Flag #25:           SEAICE          0   0.0000
Flag #26:          NAVFAIL   10393600 100.0000
Flag #27:           FILTER          0   0.0000
Flag #28:            SPARE          0   0.0000
Flag #29:        BOWTIEDEL    1338176  12.8750
Flag #30:            HIPOL          0   0.0000
Flag #31:         PRODFAIL          0   0.0000
Flag #32:            SPARE          0   0.0000

End MSl12 processing at 2017216104005000
Processing Rate = 36.088889 scans/sec

Processing Completed

Using l2gen for VIIRS scene: numElemens is less than one

Posted: Fri Aug 04, 2017 2:54 pm America/New_York
by OB.DAACx - SeanBailey
The problem is with the geolocation data.  With 100% NAVFAIL, the file likely did not get created properly.  Without valid geolocation data, l2gen cannot produce valid retrievals.
You need to verify that you did indeed correctly install the DEM files and that the geolocation file contains valid data.

Sean