OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
filter.h
Go to the documentation of this file.
1 #ifndef _FILTER_H
2 #define _FILTER_H
3 
4 #include <stdint.h>
5 #include "l12_parms.h"
6 
7 #define FDILATE 1
8 #define FLTMEAN 2
9 #define FLTMED 3
10 #define FLTRMEAN 4
11 #define FLTRMED 5
12 #define FEPSMEAN 6
13 #define FCLEAN 7
14 #define FLTRIQMEAN 8
15 #define FSTLIGHT 9
16 #define FBTDETAVG 10
17 #define FLTRREJECT 11
18 #define FTEST 12
19 
20 static const char * const filter_names[] = {"",
21  "dilation masking on flag ",
22  "mean smoothing of Lt for band ",
23  "median smoothing of LT for band ",
24  "mean smoothing of Lt-Lr for band ",
25  "median smoothing of Lt-Lr for band ",
26  "mean epsilon smoothing for band ",
27  "cleaning for flag ",
28  "interquartile mean smoothing of Lt-Lr for band ",
29  "straylight filter on flag ",
30  "replacing BT with detector average for IR band ",
31  "outlier rejection of Lt-Lr for band ",
32  "test filter for band "};
33 
34 typedef struct filter_struct {
35  int32_t func;
36  int32_t band;
37  int32_t nx;
38  int32_t ny;
39  int32_t minfill;
40  char *kernel;
41 } filstr;
42 
43 typedef struct filter_ctl_struct {
44  int32_t nfilt;
45  int32_t nscan;
46  int32_t npix;
47  filstr f[FILTMAX];
48 } fctlstr;
49 
50 #endif
filstr f[FILTMAX]
Definition: filter.h:47
int32_t band
Definition: filter.h:36
int32_t npix
Definition: filter.h:46
int32_t minfill
Definition: filter.h:39
#define FILTMAX
Definition: l12_parms.h:13
int32_t ny
Definition: filter.h:38
int32_t nfilt
Definition: filter.h:44
char * kernel
Definition: filter.h:40
int32_t func
Definition: filter.h:35
int32_t nscan
Definition: filter.h:45
int32_t nx
Definition: filter.h:37