OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
flags_sst.h
Go to the documentation of this file.
1 #ifndef _SST_FLAGS_H
2 #define _SST_FLAGS_H
3 
4 /* flag bit settings */
5 /* avhrr needs 3 bits that modis doesn't and since avhrr doesn't have */
6 /* a 4 um product, we can share those bits (40, 80, and 400) */
7 #define SSTF_ISMASKED 0x0001 /* Pixel aready masked M1B3 */
8 #define SSTF_BTBAD 0x0002 /* Brights are bad M1B4 */
9 #define SSTF_BTRANGE 0x0004 /* Brights are out-of-range M1B1 */
10 #define SSTF_BTDIFF 0x0008 /* Brights are too different */
11 #define SSTF_SSTRANGE 0x0010 /* SST outside valid range M2B4 */
12 #define SSTF_SSTREFDIFF 0x0020 /* Different from reference M1B8 */
13 #define SSTF_SST4DIFF 0x0040 /* Different from SST4 */
14 #define SSTF_SST3DIFF 0x0040 /* Different from SST3 */
15 #define SSTF_SUNLIGHT 0x0040 /* Stray sunlight test (AVHRR) M2B2 */
16 #define SSTF_SST4VDIFF 0x0080 /* Very different from SST4 */
17 #define SSTF_SST3VDIFF 0x0080 /* Very different from SST3 */
18 #define SSTF_ASCEND 0x0080 /* ASCENDING (AVHRR) M2B6 */
19 #define SSTF_BTNONUNIF 0x0100 /* BT window nonuniform M1B5 */
20 #define SSTF_BTVNONUNIF 0x0200 /* BT window very nonuniform M1B6 */
21 #define SSTF_BT4REFDIFF 0x0400 /* 4um BT diff relative to ref */
22 #define SSTF_GLINT 0x0400 /* Glint_coef>glintmax (AVHRR) M2B8 */
23 #define SSTF_REDNONUNIF 0x0800 /* Red band spatial nonuniform */
24 #define SSTF_HISENZ 0x1000 /* Sensor zenith high M1B7 */
25 #define SSTF_VHISENZ 0x2000 /* Sensor zenith very high M2B1 */
26 #define SSTF_SSTREFVDIFF 0x4000 /* Very diff from reference */
27 #define SSTF_CLOUD 0x8000 /* Cloud test (tree test) M1B2 */
28 
29 /* This set would match original pathfinder processing */
30 //static char *avhrr_sst_flag_lname[NSSTFLAGS] = {"BTRANGE",
31 // "CLOUD",
32 // "ISMASKED",
33 // "BTBAD",
34 // "BTNONUNIF",
35 // "BTVNONUNIF",
36 // "HISENZ",
37 // "SSTREFDIFF",
38 // "VHISENZ",
39 // "SUNLIGHT",
40 // "SPARE",
41 // "SSTRANGE",
42 // "SPARE",
43 // "ASCEND",
44 // "SPARE",
45 // "GLINT"};
46 /* This set fits the avhrr bits into the same slots as the modis sst flags */
47 /* with some 4 um specific bits shared with avhrr only tests */
48 static const char * const sst_flag_lname[NSSTFLAGS] = {"ISMASKED",
49  "BTBAD",
50  "BTRANGE",
51  "BTDIFF",
52  "SSTRANGE",
53  "SSTREFDIFF",
54  "SST4DIFF",
55  "SST4VDIFF",
56  "BTNONUNIF",
57  "BTVNONUNIF",
58  "BT4REFDIFF",
59  "REDNONUNIF",
60  "HISENZ",
61  "VHISENZ",
62  "SSTREFVDIFF",
63  "CLOUD"};
64 static const char * const avhrr_sst_flag_lname[NSSTFLAGS] = {"ISMASKED",
65  "BTBAD",
66  "BTRANGE",
67  "BTDIFF",
68  "SSTRANGE",
69  "SSTREFDIFF",
70  "SUNLIGHT",
71  "ASCEND",
72  "BTNONUNIF",
73  "BTVNONUNIF",
74  "GLINT",
75  "REDNONUNIF",
76  "HISENZ",
77  "VHISENZ",
78  "SSTREFVDIFF",
79  "CLOUD"};
80 static const char * const viirs_sst_flag_lname[NSSTFLAGS] = {"ISMASKED",
81  "BTBAD",
82  "BTRANGE",
83  "BTDIFF",
84  "SSTRANGE",
85  "SSTREFDIFF",
86  "SST3DIFF",
87  "SST3VDIFF",
88  "BTNONUNIF",
89  "BTVNONUNIF",
90  "SPARE",
91  "REDNONUNIF",
92  "HISENZ",
93  "VHISENZ",
94  "SSTREFVDIFF",
95  "CLOUD"};
96 static const char * const qual_sst_flag_lname[NQSSTFLAGS] = {"BEST",
97  "GOOD",
98  "QUESTIONABLE",
99  "BAD",
100  "NOTPROCESSED"};
101 #endif
#define NSSTFLAGS
Definition: l12_parms.h:16
#define NQSSTFLAGS
Definition: l12_parms.h:19