| l1bgen | ![]() |
Creates a Level 1B file from an input Level 1A file.
Location
Details
Command Line Usage
Tools -> OCSSW Processing -> l1bgen
l1bgen 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.
![]() |
| UI Element Name | Type | Description | Required/Optional | Default Value |
| ifile | Text Field | Input Level-1A data product. | Required | |
| ofile | Text Field | Output filename for generated Level-1B data product. | Required | |
| calfile | Text Field | system calibration file | Optional | |
| xcalfile | Text Field | cross-calibration file | Optional | |
| spixl | Text Field | Starting pixel number to be processed. | Optional | 1 |
| epixl | Text Field | Ending pixel number to be processed. (-1=the last pixel). | Optional | -1 |
| sline | Text Field | start line number | Optional | 1 |
| eline | Text Field | end line number (-1=the last line) | Optional | -1 |
| gain | Text Field | calibration gain multiplier | Optional | |
| offset | Text Field | calibration offset adjustment | Optional | |
| sl_pixl | Text Field | SeaWiFS only, number of LAC pixels for straylight flagging. | Conditional | -1 |
| sl_frac | Text Field | SeaWiFS only, straylight fractional threshold on Ltypical. | Conditional | 0.25 |
| pversion | Text Field | Processing version string | Optional | Unspecified |
| suite | Text Field | product suite string for loading suite-specific defaults | Optional | OC |
| UI Element Name | Type | Description |
| Browser Button | Button | Selects infile/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 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. |
Usage: l1bgen 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.
The list of valid keywords follows:
-help (boolean) (alias=-h,--help) (default=false) = print usage information
-version (boolean) (alias=--version) (default=false) = print the version
information
-dump_options (boolean) (alias=--dump_options) (default=false) = print
information about each option
-dump_options_paramfile (ofile) (alias=--dump_options_paramfile) = print
information about each option to paramfile
-dump_options_xmlfile (ofile) (alias=--dump_options_xmlfile) = 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 L2 file #1 name,
output vicarious L1B for inverse mode
ofile[#] = additional output L2 file name
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)
calfile (ifile) = system calibration file
xcalfile (ifile) = cross-calibration file
gain (float) = calibration gain multiplier
offset (float) = calibration offset adjustment
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