NASA Logo
Ocean Color Science Software

ocssw V2022
readL2scan.h File Reference
#include <dfutils.h>
#include <stdint.h>
Include dependency graph for readL2scan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  l2prod_struct
 
struct  meta_l2Struct
 

Macros

#define byte   uint8_t
 
#define MAXNFILES   10000 /* Increase to 544 09/25/06 JMG - 800 WDR */
 
#define MAXNUMBERPRODUCTS   2000
 

Enumerations

enum  L2PixelMode_t { L2PixelOff, L2PixelCorner, L2PixelDelta }
 

Functions

void l3_l2_conversion (char **inp3, char **out2)
 
void l3_l2_index (char **inp3, int *start, int *count)
 
int get_set_flag ()
 
int get_l2_flag_use ()
 
void free_rowgroup_cache ()
 
void init_rowgroup_cache ()
 
int32_t get_dtype (int32_t dtype, ds_format_t fileformat)
 
int32_t openL2 (const char *fname, const char *plist, l2_prod *l2_str)
 
int32_t reopenL2 (int32_t fileindex, l2_prod *l2_str)
 
int32_t readL2 (l2_prod *l2_str, int32_t ifile, int32_t recnum, int32_t iprod, unsigned char *scan_in_rowgroup)
 
int32_t readlonlat (l2_prod *l2_str, int32_t ifile, int32_t *start, int32_t *edges, unsigned char *scan_in_rowgroup)
 
int32_t closeL2 (l2_prod *l2_str, int32_t ifile)
 
int32_t freeL2 (l2_prod *l2_str)
 
int32_t findprod (l2_prod *l2_str, char *prodname)
 
int32_t readL2meta (meta_l2Type *meta_l2, int32_t ifile)
 
int32_t freeL2meta (meta_l2Type *meta_l2)
 
int32_t getL3units (l2_prod *l2_str, int32_t ifile, char *l3b_prodname, char *units)
 
void enableL2PixelArea (enum L2PixelMode_t val)
 

Macro Definition Documentation

◆ byte

#define byte   uint8_t

Definition at line 7 of file readL2scan.h.

◆ MAXNFILES

#define MAXNFILES   10000 /* Increase to 544 09/25/06 JMG - 800 WDR */

Definition at line 9 of file readL2scan.h.

◆ MAXNUMBERPRODUCTS

#define MAXNUMBERPRODUCTS   2000

Definition at line 10 of file readL2scan.h.

Enumeration Type Documentation

◆ L2PixelMode_t

Enumerator
L2PixelOff 
L2PixelCorner 
L2PixelDelta 

Definition at line 163 of file readL2scan.h.

Function Documentation

◆ closeL2()

int32_t closeL2 ( l2_prod *  l2_str,
int32_t  ifile 
)

Definition at line 1995 of file readL2scan.c.

◆ enableL2PixelArea()

void enableL2PixelArea ( enum L2PixelMode_t  val)

Turn on the calculation of the lat/lon deltas. Used for area weighting.

Parameters
valL2PixelOff(0)=off, L2PixelCorner(1)=pixel corners, L2PixelDelta(2)=pixel deltas

Definition at line 213 of file readL2scan.c.

◆ findprod()

int32_t findprod ( l2_prod *  l2_str,
char *  prodname 
)

Definition at line 2140 of file readL2scan.c.

◆ free_rowgroup_cache()

void free_rowgroup_cache ( )

Definition at line 259 of file readL2scan.c.

◆ freeL2()

int32_t freeL2 ( l2_prod *  l2_str)

Definition at line 2083 of file readL2scan.c.

◆ freeL2meta()

int32_t freeL2meta ( meta_l2Type *  meta_l2)

Definition at line 2325 of file readL2scan.c.

◆ get_dtype()

int32_t get_dtype ( int32_t  dtype,
ds_format_t  fileformat 
)

get_dtype get proper data type for reading This converts to appropriate NCDF type given an HDF type May want a better mouse trap, but for now solves the problem

Definition at line 231 of file readL2scan.c.

◆ get_l2_flag_use()

int get_l2_flag_use ( )

Definition at line 437 of file expand3D.cpp.

◆ get_set_flag()

int get_set_flag ( )

Definition at line 434 of file expand3D.cpp.

◆ getL3units()

int32_t getL3units ( l2_prod *  l2_str,
int32_t  ifile,
char *  l3b_prodname,
char *  units 
)

Definition at line 2346 of file readL2scan.c.

◆ init_rowgroup_cache()

void init_rowgroup_cache ( )

Definition at line 287 of file readL2scan.c.

◆ l3_l2_conversion()

void l3_l2_conversion ( char **  inp3,
char **  out2 
)

Definition at line 413 of file expand3D.cpp.

◆ l3_l2_index()

void l3_l2_index ( char **  inp3,
int *  start,
int *  count 
)

Definition at line 428 of file expand3D.cpp.

◆ openL2()

int32_t openL2 ( const char *  fname,
const char *  plist,
l2_prod *  l2_str 
)

Definition at line 316 of file readL2scan.c.

◆ readL2()

int32_t readL2 ( l2_prod *  l2_str,
int32_t  ifile,
int32_t  recnum,
int32_t  iprod,
unsigned char *  scan_in_rowgroup 
)

Definition at line 1336 of file readL2scan.c.

◆ readL2meta()

int32_t readL2meta ( meta_l2Type *  meta_l2,
int32_t  ifile 
)

Definition at line 2151 of file readL2scan.c.

◆ readlonlat()

int32_t readlonlat ( l2_prod *  l2_str,
int32_t  ifile,
int32_t *  start,
int32_t *  edges,
unsigned char *  scan_in_rowgroup 
)

Definition at line 1828 of file readL2scan.c.

◆ reopenL2()

int32_t reopenL2 ( int32_t  fileindex,
l2_prod *  l2_str 
)

Definition at line 1050 of file readL2scan.c.