A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
auto_qc
l3stat_chk
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 */
clim_struct::param
int32_t param
Definition:
l3stat.h:41
clim_struct
Definition:
l3stat.h:40
cntl_struct::param
int32_t param
Definition:
l3stat.h:34
cntl_struct::high_thresh
float high_thresh
Definition:
l3stat.h:37
clim_struct::climfile
char climfile[255]
Definition:
l3stat.h:48
clim_struct::thresh2L
float thresh2L
Definition:
l3stat.h:45
cntl_struct::err_thresh
float err_thresh
Definition:
l3stat.h:35
clim_struct::thresh1L
float thresh1L
Definition:
l3stat.h:43
clim_struct::thresh2H
float thresh2H
Definition:
l3stat.h:44
clim_struct::thresh3H
float thresh3H
Definition:
l3stat.h:46
clim_struct::thresh1H
float thresh1H
Definition:
l3stat.h:42
clim_struct::thresh3L
float thresh3L
Definition:
l3stat.h:47
cntl_struct
Definition:
l2stat.h:32
cntl_struct::low_thresh
float low_thresh
Definition:
l3stat.h:36