l1bgen_generic |

### l1bgen_generic

Creates a Level 1B file from an input Level 1A file.

Location
Details
Command Line Usage

#### Location

SeaDAS-Toolbox -> SeaDAS Processors -> l1bgen_generic

#### Details

l1bgen_generic reads in a SeaWiFS Level-1A file (HRPT, LAC, or GAC) and generates a L1B file by applying the sensor calibration at the same resolution and location as the Level-1A data.

l1bgen_generic GUI

Arguments/Keywords

UI Element Name | Type | Description | Required/Optional | Default Value
ifile | ifile | Input Level-1A data product. | Required |
ofile | ofile | Output filename for generated Level-1B data product. | Required |
calfile | ifile | system calibration file | Optional |
xcalfile | ifile | cross-calibration file | Optional |
spixl | int | Starting pixel number to be processed. | Optional | 1
epixl | int | Ending pixel number to be processed. (-1=the last pixel). | Optional | -1
sline | int | start line number | Optional | 1
eline | int | end line number (-1=the last line) | Optional | -1
gain | float | calibration gain multiplier | Optional |
offset | float | calibration offset adjustment | Optional |
sl_pixl | int | SeaWiFS only, number of LAC pixels for straylight flagging. | Conditional | -1
sl_frac | float | SeaWiFS only, straylight fractional threshold on Ltypical. | Conditional | 0.25
pversion | string | Processing version string | Optional | Unspecified
suite | string | product suite string for loading suite-specific defaults | Optional | OC

Actions/Buttons

UI Element Name | Type | Description
Browser Button | Button | Selects ifile/ofile
Load Parameters ... | Button | Reads in previously saved parameters and populates the fields in GUI.
Store Parameters ... | Button | Saves the current arguments in GUI in a file.
Run | Button | Executes the l1bgen_generic command with arguments provided in the UI.
Cancel | Button | Closes current processor GUI.
Apply | Button | Makes current arguments effective.
Open in SeaDAS | Checkbox | If selected, the ofile will be added to the open products list right after its generation.
? | Button | Displays the help content of the current command.

#### Command Line Usage

    l1bgen_generic 9.11.0-V2025.5 (Aug 21 2025 23:37:44)
    Usage: l1bgen_generic argument-list

      The argument-list is a set of keyword=value pairs. The arguments can
      be specified on the commandline, or put into a parameter file, or the
      two methods can be used together, with commandline over-riding.

      return value: 0=OK, 1=error, 110=north,south,east,west does not intersect
      file data.

    The list of valid keywords follows:

       help (boolean) (alias=h) (default=false) = print usage information
       version (boolean) (default=false) = print the version
            information
       dump_options (boolean) (default=false) = print
            information about each option
       dump_options_paramfile (ofile) = print
            information about each option to paramfile
       dump_options_xmlfile (ofile) = print
            information about each option to XML file
       par (ifile) = input parameter file
       pversion (string) (default=Unspecified) = processing version string
       suite (string) (default=OC) = product suite string for loading
            suite-specific defaults
       ifile (ifile) (alias=ifile1) = input L1 file name
       ofile (ofile) (alias=ofile1) (default=output) = output file name
       oformat (string) (default=netCDF4) = output file format
            netcdf4: output a netCDF version 4 file
            hdf4:    output a HDF version 4 file
       fqfile (ifile) (default=$OCDATAROOT/common/morel_fq.nc) = f/Q correction file
       parfile (ifile) = par climatology file for NPP calculation
       georegion_file (string) = geo region mask file with lat,lon,georegion 1=process pixel, 0=do not
       calfile (ifile) = system calibration file
       xcalfile (ifile) = cross-calibration file
       sl_pixl (int) (default=-1) = SeaWiFS only, number of LAC pixels for
            straylight flagging
       sl_frac (float) (default=0.25) = SeaWiFS only, straylight fractional
            threshold on Ltypical
       gain (float) = calibration gain multiplier
       offset (float) = calibration offset adjustment
       spixl (int) (default=1) = start pixel number
       epixl (int) (default=-1) = end pixel number (-1=the last pixel)
       sline (int) (default=1) = start line number
       eline (int) (default=-1) = end line number (-1=the last line)
    l1bgen_generic 9.11.0-V2025.5 (Aug 21 2025 23:37:44)
    Usage: l1bgen_generic argument-list

      The argument-list is a set of keyword=value pairs. The arguments can
      be specified on the commandline, or put into a parameter file, or the
      two methods can be used together, with commandline over-riding.

      return value: 0=OK, 1=error, 110=north,south,east,west does not intersect
      file data.

    The list of valid keywords follows:

       help (boolean) (alias=h) (default=false) = print usage information
       version (boolean) (default=false) = print the version
            information
       dump_options (boolean) (default=false) = print
            information about each option
       dump_options_paramfile (ofile) = print
            information about each option to paramfile
       dump_options_xmlfile (ofile) = print
            information about each option to XML file
       par (ifile) = input parameter file
       pversion (string) (default=Unspecified) = processing version string
       suite (string) (default=OC) = product suite string for loading
            suite-specific defaults
       ifile (ifile) (alias=ifile1) = input L1 file name
       ofile (ofile) (alias=ofile1) (default=output) = output file name
       oformat (string) (default=netCDF4) = output file format
            netcdf4: output a netCDF version 4 file
            hdf4:    output a HDF version 4 file
       fqfile (ifile) (default=$OCDATAROOT/common/morel_fq.nc) = f/Q correction file
       parfile (ifile) = par climatology file for NPP calculation
       georegion_file (string) = geo region mask file with lat,lon,georegion 1=process pixel, 0=do not
       calfile (ifile) = system calibration file
       xcalfile (ifile) = cross-calibration file
       sl_pixl (int) (default=-1) = SeaWiFS only, number of LAC pixels for
            straylight flagging
       sl_frac (float) (default=0.25) = SeaWiFS only, straylight fractional
            threshold on Ltypical
       gain (float) = calibration gain multiplier
       offset (float) = calibration offset adjustment
       spixl (int) (default=1) = start pixel number
       epixl (int) (default=-1) = end pixel number (-1=the last pixel)
       sline (int) (default=1) = start line number
       eline (int) (default=-1) = end line number (-1=the last line)