OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l3stat.h
Go to the documentation of this file.
1 #ifndef L3STAT_H
2 #define L3STAT_H
3 
4 #include <stdint.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <math.h>
9 
10 #define NPARAMS 11
11 #define NFLAGS 32
12 #define BUFSZ 1000
13 #define MAXVAL 255
14 #define SET 1
15 
16 #define NSAMP "Pixels per Scan Line"
17 #define NSCANS "Number of Scan Lines"
18 #define TITLE "Title"
19 #define DTYPE "Data Type"
20 #define PERCENTFLAGS "Flag Percentages"
21 
22 #define GAC "GAC"
23 #define LAC "LAC"
24 #define HRPT "HRPT"
25 
26 #define MASKNAMES "Mask Names"
27 #define L3FLAGS "l3_flags"
28 
29 /*
30  * cntl_struct will hold requested parameter threshold values
31  */
32 
33 typedef struct cntl_struct {
34  int32_t param;
35  float err_thresh;
36  float low_thresh;
37  float high_thresh;
38 } cntl_str;
39 
40 typedef struct clim_struct {
41  int32_t param;
42  float thresh1H;
43  float thresh1L;
44  float thresh2H;
45  float thresh2L;
46  float thresh3H;
47  float thresh3L;
48  char climfile[255];
49 } clim_str;
50 
51 /*
52  * Following define returns an absolute value of the given number
53  */
54 
55 #define fltabs(x) (x>=0 ? x : -(x))
56 
57 #endif /* L3STAT_H */
int32_t param
Definition: l3stat.h:41
int32_t param
Definition: l3stat.h:34
float high_thresh
Definition: l3stat.h:37
char climfile[255]
Definition: l3stat.h:48
float thresh2L
Definition: l3stat.h:45
float err_thresh
Definition: l3stat.h:35
float thresh1L
Definition: l3stat.h:43
float thresh2H
Definition: l3stat.h:44
float thresh3H
Definition: l3stat.h:46
float thresh1H
Definition: l3stat.h:42
float thresh3L
Definition: l3stat.h:47
float low_thresh
Definition: l3stat.h:36