VIIRS l2gen error in initialization

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cmitchell
Posts: 19
Joined: Tue Jun 06, 2017 11:42 am America/New_York
Answers: 0

VIIRS l2gen error in initialization

by cmitchell » Thu Feb 03, 2022 1:30 pm America/New_York

When I'm processing a VIIRS SNPP file with l2gen I'm getting various errors. Any thoughts? See printout from l2gen below and the contents of the par file used as input.

I upgraded my ocssw code to V2021.2 last week. I download both the L1A and GEO files from the direct data access links.

l2gen:

Code: Select all

l2gen par=V2018340160000.par
Loading default parameters from /home/cmitchell/ocssw/share/common/msl12_defaults.par
Input file V2018340160000.L1A_SNPP.nc is VIIRS NPP L1A NetCDF4.

Loading characteristics for VIIRSN
Opening sensor information file /home/cmitchell/ocssw/share/viirs/npp/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

Loading default parameters for VIIRSN from /home/cmitchell/ocssw/share/viirs/msl12_defaults.par
Loading default sub-sensor parameters for VIIRSN from /home/cmitchell/ocssw/share/viirs/npp/msl12_defaults.par
Loading parameters for suite OC from /home/cmitchell/ocssw/share/viirs/msl12_defaults_OC.par
Loading command line parameters

Loading user parameters for VIIRSN

-W- Number of xcal_wave elements (7) should be equal to xcal_opt number elements (10)
Internal data compression requested at compression level: 4
Opening filter file /home/cmitchell/ocssw/share/viirs/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


-W- Number of xcal_wave elements (7) should be equal to xcal_opt number elements (10)
Attempt to read Polar Wander file failed.
VcstCmnGeo::LUT initialization failure
VcstObc:: CmnGeo initialization failure
VcstViirsCal::Granule initialization failure

Error in initialization.
par file contents:

Code: Select all

ifile=V2018340160000.L1A_SNPP.nc
geofile=V2018340160000.GEO-M_SNPP.nc
ofile=V2018340160000.L2
north=45
south=42
east=-66
west=-71
l2prod1=Rrs_vvv,pic,calcite_ci2,calcite_2b,calcite_3b,poc,chlor_a,adg_vvv_giop,a_vvv_giop,aph_vvv_giop,bb_vvv_giop,l2_flags
resolution=1000
proc_sst=0

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 653
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 2 times

Re: VIIRS l2gen error in initialization

by OB SeaDAS - xuanyang02 » Fri Feb 04, 2022 5:51 pm America/New_York

You can try to extract the L1A file to your region of interest, generate a geolocation file for the extracted L1A file, and then process the extracted L1A/GEO data with l2gen using the same par file content except the north/south/east/west options

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1469
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

Re: VIIRS l2gen error in initialization

by OB.DAAC - SeanBailey » Sat Feb 05, 2022 9:42 am America/New_York

The key error here is:
Attempt to read Polar Wander file failed
Run

Code: Select all

update_luts viirsn
This should resolve things for you.

Sean

Post Reply