OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l2stat.h
Go to the documentation of this file.
1 #ifndef L2STAT_H
2 #define L2STAT_H
3 
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 #include <math.h>
8 #include "hdf.h"
9 #include "mfhdf.h"
10 
11 #define NPARAMS 12
12 #define NFLAGS 32
13 
14 #define NSAMP "Pixels per Scan Line"
15 #define NSCANS "Number of Scan Lines"
16 #define TITLE "Title"
17 #define DTYPE "Data Type"
18 #define PERCENTFLAGS "Flag Percentages"
19 
20 #define GAC "GAC"
21 #define LAC "LAC"
22 #define HRPT "HRPT"
23 
24 #define MASKNAMES "Mask Names"
25 #define L2FLAGS "l2_flags"
26 
27 /*
28  * cntl2_struct will hold requested band threshold values for gain1, gain2,
29  * and zero pixels
30  */
31 
32 typedef struct cntl_struct {
33  int32 param;
34  float32 err_thresh;
35  float32 low_thresh;
36  float32 high_thresh;
37 } cntl_str;
38 
39 typedef struct flag_struct {
40  int32 flag;
41  float32 err_low_thresh;
42  float32 err_high_thresh;
43 } flag_str;
44 
45 /*
46  * Following define returns an absolute value of the given number
47  */
48 
49 #define fltabs(x) (x>=0 ? x : -(x))
50 
51 #endif /* L2STAT_H */
float32 err_low_thresh
Definition: l2stat.h:41
float32 low_thresh
Definition: l2stat.h:35
float32 err_thresh
Definition: l2stat.h:34
float32 high_thresh
Definition: l2stat.h:36
int32 param
Definition: l2stat.h:33
float32 err_high_thresh
Definition: l2stat.h:42
int32 flag
Definition: l2stat.h:40