Error in VIIRS l2gen processing, version 9.11.0-V2025.5
-
andrei_mitrich
- Posts: 15
- Joined: Tue Oct 24, 2023 6:48 am America/New_York
Error in VIIRS l2gen processing, version 9.11.0-V2025.5
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
---------------------------------------------------------
[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
Filters:
-
OB SeaDAS - dshea
- Subject Matter Expert

- Posts: 283
- Joined: Thu Mar 05, 2009 10:25 am America/New_York
- Endorsed: 3 times
Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5
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.
don
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
-
andrei_mitrich
- Posts: 15
- Joined: Tue Oct 24, 2023 6:48 am America/New_York
Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5
Many thanks, very helpful!
Cheers,
Andrei
Cheers,
Andrei
-
basejjaka1
- Posts: 1
- Joined: Thu Mar 19, 2026 3:51 am America/New_York
Re: Error in VIIRS l2gen processing, version 9.11.0-V2025.5
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.
> "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.