NASA Logo
Ocean Color Science Software

ocssw V2022
l2extract.h File Reference
#include <clo.h>
#include <genutils.h>
#include "version.h"
Include dependency graph for l2extract.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOUNDS_ERROR   110
 

Functions

int extractNetCDF (const char *infile, const char *outfile, int spix, int epix, int sscan, int escan, const char *prodlist, const char *wavelist)
 
int l2extract_init_options (clo_optionList_t *list, const char *softwareVersion)
 
int l2extract_read_options (clo_optionList_t *list, int argc, char *argv[])
 

Variables

clo_optionList_toptionList
 

Macro Definition Documentation

◆ BOUNDS_ERROR

#define BOUNDS_ERROR   110

Definition at line 12 of file l2extract.h.

Function Documentation

◆ extractNetCDF()

int extractNetCDF ( const char *  infile,
const char *  outfile,
int  spix,
int  epix,
int  sscan,
int  escan,
const char *  prodlist,
const char *  wavelist 
)

extract a L2 netCDF file

Parameters
infileinput file name
outfileoutput file name
spixstart pixel (1 based)
epixending pixel (1 based)
sscanstart line (1 based)
escanend line (1 based)
prodlistproduct list, comma separated, empty string outputs all products
Returns
0 = success

Definition at line 293 of file l2extract_netcdf.c.

◆ l2extract_init_options()

int l2extract_init_options ( clo_optionList_t list,
const char *  softwareVersion 
)

add all of the accepted command line options to list

Definition at line 14 of file l2extract_input.c.

◆ l2extract_read_options()

int l2extract_read_options ( clo_optionList_t list,
int  argc,
char *  argv[] 
)

Definition at line 106 of file l2extract_input.c.

Variable Documentation

◆ optionList

clo_optionList_t* optionList

Definition at line 68 of file main_l2extract.c.