ocssw V2020
l12_parms.h
Go to the documentation of this file.
1 
2 #ifndef _L12_PARMS_H
3 #define _L12_PARMS_H
4 
5 #include <sensorDefs.h>
6 
7 #define PROGRAM "l2gen"
8 
9 /* #define NBANDS 16 */
10 #define NBANDSIR 8
11 #define NQMIN 3
12 #define NQMAX 500
13 #define FILTMAX 200
14 #define MAXPIX 10000
15 #define MAX_OFILES 10
16 #define MAX_IFILES 1024
17 #define NFLAGS 32
18 #define NSSTFLAGS 16
19 #define NGIOPFLAGS 16
20 #define NINPRODS 3
21 #define NQSSTFLAGS 5
22 
23 #define SUCCESS 0
24 #define FATAL_ERROR 1
25 #define LONLAT_ERROR 110
26 /*
27 #define SEAWIFS_GAC 0
28 #define SEAWIFS_LAC 1
29 #define MODISA_SUB 2
30 #define MODISA_FULL 3
31 #define MODISB_SUB 4
32 #define MODISB_FULL 5
33  */
34 #define OFF 0
35 #define ON 1
36 #define NO 0
37 #define YES 1
38 
39 /*
40 #define BAD_FLT -32767.0
41 #define BAD_INT -32767
42 #define BAD_UINT 65535
43 #define BAD_BYTE -128
44 #define BAD_UBYTE 255
45  */
46 
47 #define MAXAERMOD 100
48 #define AERWHITE 0
49 #define AERWANG -1
50 #define AERRHNIR -2
51 #define AERWANGNIR -3
52 #define FIXMODPAIR -4
53 #define FIXMODPAIRNIR -5
54 #define FIXANGSTROM -6
55 #define FIXANGSTROMNIR -7
56 #define FIXAOT -8
57 #define AERWANGSWIR -9
58 #define AERMUMM -10
59 #define AERRHFRNIR -13
60 #define AERRHSWIR -14
61 #define AERRH -15
62 #define AERRHMUMM -16
63 #define AERRHMSEPS -17
64 #define AERRHSM -18
65 #define AERRHMSEPS_lin -19
66 #define AERNULL -99
67 
68 #define XCALRVS 1
69 #define XCALPOL 2
70 #define XCALOLI 4 //Sudipta added for OLI SCA based XCAL
71 
72 #define DEFAULT_CHL 0
73 #define CHL_MIN 0.00
74 #define CHL_MAX 100.0
75 #define AOT_MIN 0.00
76 #define AOT_MAX 1.0
77 #define BT_LO -1000
78 #define BT_HI 1000
79 #define GLINT_MIN 0.0001
80 
81 #define DEM_WIDTH 43200
82 #define DEM_HEIGHT 21600
83 
84 #define BANDW 10
85 
86 #define NOBRDF 0 /* brdf */
87 #define FRESNSEN 1 /* bit 1 */
88 #define FRESNSOL 2 /* bit 2 */
89 #define FOQMOREL 4 /* bit 3 */
90 #define DTBRDF 8 /* bit 4 */
91 #define QMOREL 16 /* bit 5 */
92 
93 #define O3_BIT 1
94 #define CO2_BIT 2
95 #define NO2_BIT 4
96 #define H2O_BIT 8
97 #define ATREM_BIT 16
98 #define GAS_TRANS_TBL_BIT 32
99 
100 #define IOPNONE 0
101 #define IOPCARDER 1
102 #define IOPGSM 2
103 #define IOPQAA 3
104 #define IOPPML 4
105 #define IOPNIWA 5
106 #define IOPLAS 6
107 #define IOPGIOP 7
108 #define IOPSWIM 8
109 #define IOPDEFAULT IOPQAA
110 
111 #define QAABLEND 0
112 #define QAA555 1
113 #define QAA640 2
114 
115 #define NOMATCH_ERROR 110
116 #define FILESIZE_ERROR 111
117 
118 #ifndef PI
119 #define PI 3.141592654
120 #endif
121 #define RADEG 57.29577951
122 #define STDPR 1013.25
123 
124 #define STDPROC 0 /* evalmask bit definitions */
125 #define OLDAERMOD 1 /* init to old aerosol models */
126 #define MODCLOUD 2 /* enables MODIS/MERIS cloud mask algorithm */
127 #define MODCIRRUS 16 /* enables MODIS cirrus mask */
128 #define NEWSENSINFO 32 /* use test sensor info file */
129 #define NEWRAYTAB 64 /* use test rayleigh tables */
130 #define NEWAERTAB 128 /* use test aerosol tables */
131 #define NEWPOLTAB 256 /* use test polarization tables */
132 #define MSKMODMIR1 1024 /* mask modis mirror-side 1 (navfail) */
133 #define MSKMODMIR2 2048 /* mask modis mirror-side 2 (navfail) */
134 #define SSTMODS 4096 /* reserved for testing SST changes */
135 #define ALTSENSORINFO 8192 /* use .alt sensor infor file in eval */
136 #define TRANSSPHER 32768 /* enables spherical path geom for dtran */
137 
138 #define SOLZNIGHT 85.0
139 #define SOLZNIGHTA 80.0
140 #define DAYSCENE 0
141 #define NIGHTSCENE 1
142 #define DAYANDNIGHT 2
143 #define UNKNOWNSCENE 3
144 
145 #define SWN 0
146 #define SWA 1
147 #define SWBB 2
148 
149 #endif