Page 1 of 1

Error in VIIRS l2gen processing, version 9.11.0-V2025.5

Posted: Wed Mar 11, 2026 4:51 am America/New_York
by andrei_mitrich
Hi, I am trying to run seadas-10 l2gen on VIIRS-SNPP L1A data. This command works all right with previous l2gen versions, like 9.6, 9.7, now it returns errors. The command is run from a container, aiming to produce L1C files (L2 with all gains 1). The resulting command was:
---------------------------------------------------------
[b]l2gen ifile="/workdir/SNPP_VIIRS.20230613T183000.L1A.nc" geofile="/workdir/SNPP_VIIRS.20230613T183000.GEO" ofile="/tmp/tmpfiles_cqnygz_2/SNPP_VIIRS.20230613T183000.L1C" l2prod="rhot_nnn polcor_nnn sena senz sola solz latitude
longitude" gain="1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0" atmocor=0 aer_opt=-99 brdf_opt=0[/b]
----------------------------------------------

Loading default parameters from /opt/seadas/ocssw/share/common/msl12_defaults.par
sh: 1: getfattr: not found
Input file /workdir/SNPP_VIIRS.20230613T183000.L1A.nc is VIIRS NPP L1A NetCDF4.

Error output:
============

[b]Reading Thuillier_F0.dat
openl1 - Unknown L1 input file format specifier: 34
-E- l2gen: Error opening /workdir/SNPP_VIIRS.20230613T183000.L1A.nc for reading.
exiting l2gen
Command exited with non-zero status 1[/b]
======================
Thank you for help.
Andrei

Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5

Posted: Thu Mar 12, 2026 6:20 pm America/New_York
by OB SeaDAS - dshea
To simplify the inner workings of l2gen for VIIRS we no longer support giving l2gen a VIIRS L1A file as the ifile. The ifile needs to be an L1B. Use "calibrate_viirs" to make an L1B from the L1A.

Code: Select all

calibrate_viirs ifile=viirs.L1A.nc l1bfile_mod=viirs.L1B.nc 
l2gen ifile=viirs.L1B.nc ofile=viirs.L2.nc suite=OC
don

Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5

Posted: Fri Mar 13, 2026 3:47 am America/New_York
by andrei_mitrich
Many thanks, very helpful!
Cheers,
Andrei

Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5

Posted: Fri Mar 27, 2026 9:46 am America/New_York
by basejjaka1
andrei_mitrich wrote:
> "Reading Thuillier_F0.dat
openl1 - Unknown L1 input file format specifier: 34
-E- l2gen: Error opening /workdir/SNPP_VIIRS.20230613T183000.L1A.nc for reading."

It's definitely a change in the workflow for SeaDAS 10. It seems that the newer OCSSW updates now strictly require the L1B conversion via calibrate_viirs before running l2gen, whereas older versions were a bit more flexible with the input types.