NASA Logo
Ocean Color Science Software

ocssw V2022
l2prod.h
Go to the documentation of this file.
1 #ifndef _L2PROD_H
2 #define _L2PROD_H
3 
4 #define CAT_Lt 0
5 #define CAT_Lr 1
6 #define CAT_La 2
7 #define CAT_Lw 3
8 #define CAT_nLw 4
9 #define CAT_tLf 5
10 #define CAT_Taua 6
11 #define CAT_Es 7
12 #define CAT_t_sol 8
13 #define CAT_t_sen 9
14 
15 #define CAT_tg_sol 10
16 #define CAT_tg_sen 11
17 #define CAT_solz 12
18 #define CAT_sola 13
19 #define CAT_sena 14
20 #define CAT_senz 15
21 #define CAT_ozone 16
22 #define CAT_windspeed 17
23 #define CAT_pressure 18
24 #define CAT_humidity 19
25 #define CAT_water_vapor 20
26 
27 #define CAT_no2_tropo 21
28 #define CAT_epsilon 22
29 #define CAT_aer_model 23
30 #define CAT_aer_ratio 24
31 #define CAT_l2_flags 25
32 #define CAT_chl_oc2 26
33 #define CAT_depth_class 27
34 #define CAT_TLg 28
35 #define CAT_par 29
36 
37 #define CAT_angstrom 30
38 #define CAT_Kd_mueller 31
39 #define CAT_ndvi 32
40 #define CAT_glint_coef 33
41 #define CAT_num_iter 34
42 #define CAT_brdf 35
43 #define CAT_aerindex 36
44 #define CAT_rhos 37
45 #define CAT_evi 38
46 #define CAT_smoke 39
47 
48 #define CAT_no2_strat 40
49 #define CAT_chl_oc4 41
50 #define CAT_windangle 42
51 #define CAT_mwind 43
52 #define CAT_zwind 44
53 #define CAT_cloud_albedo 45
54 #define CAT_t_o2 46
55 #define CAT_fsol 47
56 #define CAT_rhot 48
57 #define CAT_height 49
58 
59 #define CAT_calcite_3b 50
60 #define CAT_Rrs 52
61 #define CAT_sst 53
62 #define CAT_chl_gsm 54
63 #define CAT_adg_gsm 55
64 #define CAT_bbp_gsm 56
65 #define CAT_t_h2o 57
66 #define CAT_sstref 58
67 #define CAT_L_q 59
68 
69 #define CAT_L_u 60
70 #define CAT_polcor 61
71 #define CAT_chl_oc3 62
72 #define CAT_evi2 63
73 #define CAT_evi3 64
74 
75 #define CAT_slot 65
76 #define CAT_pixnum 66
77 #define CAT_detnum 67
78 #define CAT_mside 68
79 #define CAT_alpha 69
80 
81 #define CAT_no2_frac 70
82 #define CAT_fsat 71
83 #define CAT_a_carder 72
84 #define CAT_bb_carder 73
85 #define CAT_aph_carder 74
86 #define CAT_adg_carder 75
87 #define CAT_chl_carder 76
88 #define CAT_flags_carder 77
89 #define CAT_dpol 78
90 #define CAT_calcite_2b 79
91 
92 #define CAT_a_gsm 80
93 #define CAT_bb_gsm 81
94 #define CAT_aph_gsm 82
95 /* #define CAT_fqy2 83 open for use */
96 #define CAT_ipar 84
97 #define CAT_fqy 85
98 #define CAT_bbp_carder 86
99 #define CAT_a 87 /* not in product.xml? */
100 #define CAT_bb 88 /* not in product.xml? */
101 #define CAT_a_qaa 89
102 
103 #define CAT_bb_qaa 90
104 #define CAT_aph_qaa 91
105 #define CAT_adg_qaa 92
106 #define CAT_bbp_qaa 93
107 #define CAT_Kd_lee 94
108 #define CAT_Kd_obpg 95
109 #define CAT_iter_gsm 96
110 #define CAT_sst4 97
111 #define CAT_chl_soa 98
112 #define CAT_bbp_soa 99
113 
114 #define CAT_adg_soa 100
115 #define CAT_pcentcdm_soa 101
116 #define CAT_w0_soa 102
117 #define CAT_v_soa 103
118 #define CAT_sssref 104
119 #define CAT_flags_sst 105
120 #define CAT_flags_sst4 106
121 #define CAT_qual_sst 107
122 #define CAT_qual_sst4 108
123 #define CAT_calcite 109
124 
125 #define CAT_myprod1 110
126 #define CAT_myprod2 111
127 #define CAT_myprod3 112
128 #define CAT_myprod4 113
129 #define CAT_myprod5 114
130 #define CAT_myprod6 115
131 #define CAT_myprod7 116
132 #define CAT_myprod8 117
133 #define CAT_myprod9 118
134 #define CAT_myprod10 119
135 
136 #define CAT_bias_sst 120
137 #define CAT_bias_sst4 121
138 #define CAT_stdv_sst 122
139 #define CAT_stdv_sst4 123
140 #define CAT_rhom 124
141 #define CAT_Kd_morel 125
142 #define CAT_tindx_shi 126
143 #define CAT_KPAR_morel 127
144 #define CAT_Zhl_morel 128
145 #define CAT_Zeu_morel 129
146 
147 #define CAT_Zsd_morel 130
148 #define CAT_tindx_morel 131
149 #define CAT_Kd_KD2 132
150 #define CAT_vgain 133
151 #define CAT_vLt 134
152 #define CAT_vtLw 135
153 #define CAT_vLw 136
154 #define CAT_vnLw 137
155 #define CAT_vbsat 138
156 #define CAT_vbtgt 139
157 
158 #define CAT_chl_carder_emp 140
159 #define CAT_Zphotic_lee 141
160 /*
161 these poc_unc entries were redefine to fix a duplication error
162 previously they were 535 and 536 respectively
163 142 and 142 were b_qaa and c_qaa, but the QAA code doesn't support these
164 products - not sure it ever did...
165 */
166 #define CAT_poc_unc_stramski_443 142
167 #define CAT_poc_unc_stramski_490 143
168 
169 #define CAT_Kd_532 144
170 #define CAT_KPAR_lee 145
171 #define CAT_BT 146
172 #define CAT_BT_39 147 /* phase-out */
173 #define CAT_BT_40 148 /* phase-out */
174 #define CAT_BT_11 149 /* phase-out */
175 #define CAT_BT_12 150 /* phase-out */
176 #define CAT_Ltir 151 /* phase-out */
177 
178 #define CAT_poc_stramski_443 152
179 #define CAT_poc_stramski_490 153
180 #define CAT_chl_sma 154
181 #define CAT_bbp_sma 155
182 #define CAT_adg_sma 156
183 #define CAT_w0_sma 157
184 #define CAT_dom_sma 158
185 #define CAT_a_pml 159
186 
187 #define CAT_bb_pml 160
188 #define CAT_bbp_pml 161
189 #define CAT_aph_pml 162
190 #define CAT_adg_pml 163
191 #define CAT_mod_rrs_qaa 164
192 #define CAT_a_las 165
193 #define CAT_b_las 166
194 #define CAT_c_las 167
195 #define CAT_bb_las 168
196 #define CAT_bbp_las 169
197 
198 #define CAT_a_giop 170
199 #define CAT_bb_giop 171
200 #define CAT_bbp_giop 172
201 #define CAT_aph_giop 173
202 #define CAT_adg_giop 174
203 #define CAT_chl_giop 175
204 #define CAT_a_unc_giop 176
205 #define CAT_bb_unc_giop 177
206 #define CAT_bbp_unc_giop 178
207 #define CAT_aph_unc_giop 179
208 #define CAT_adg_unc_giop 180
209 #define CAT_chl_unc_giop 181
210 #define CAT_aphs_giop 182
211 #define CAT_adgs_giop 183
212 #define CAT_bbps_giop 184
213 #define CAT_iter_giop 185
214 #define CAT_rrsdiff_giop 186
215 #define CAT_chisqr_giop 187
216 #define CAT_fitpar_giop 188
217 #define CAT_chisqr_mbac 189
218 
219 #define CAT_mRrs_giop 190
220 #define CAT_flags_giop 191
221 #define CAT_relaz 192
222 #define CAT_flags_qaa 193
223 #define CAT_bbps_las 194
224 #define CAT_a_niwa 195
225 #define CAT_bb_niwa 196
226 #define CAT_flags_niwa 197
227 #define CAT_rho_cirrus 198
228 /*
229 199 through 205, 23,214 and 222 are in product.xml...
230 should they be?
231 */
232 //#define CAT_ozone_unc 199
233 //#define CAT_windspeed_unc 200
234 //#define CAT_pressure_unc 201
235 //#define CAT_humidity_unc 202
236 //#define CAT_water_vapor_unc 203
237 //#define CAT_no2_tropo_unc 204
238 //#define CAT_no2_strat_unc 205 /* as 213, 214, 222 */
239 #define CAT_iCDOM_morel 206
240 #define CAT_pCDOM_morel 207
241 #define CAT_chl_morel 208
242 #define CAT_adg_morel 209
243 #define CAT_scattang 210
244 
245 #define CAT_ms_epsilon 211
246 #define CAT_ice_frac 212
247 //#define CAT_windangle_unc 213
248 //#define CAT_mwind_unc 214
249 #define CAT_owt 215
250 #define CAT_owtn 216
251 #define CAT_owtd 217
252 #define CAT_chl_owterr 218
253 #define CAT_class_ward_owmc 219
254 
255 #define CAT_class_k_owmc 220
256 #define CAT_class_34k_w_owmc 221
257 //#define CAT_zwind_unc 222
258 #define CAT_Zsd_gbr 223
259 #define CAT_chl_cdomcorr_morel 224
260 #define CAT_chl_hu 225
261 #define CAT_Lt_unc 226
262 // #define CAT_nLw_unc 227
263 #define CAT_Rrs_unc 228
264 #define CAT_chl_oci 229
265 
266 #define CAT_chl_oc3c 230
267 #define CAT_chl_oci2 231
268 /* 232 is open for use */
269 #define CAT_Rrs_vc 233
270 #define CAT_chl_vc 234
271 #define CAT_aw 235
272 #define CAT_bbw 236
273 #define CAT_nw 237
274 
275 #define CAT_chl_mgiop 238
276 #define CAT_bbp_mgiop 239
277 #define CAT_adg_mgiop 240
278 #define CAT_aph_mgiop 241
279 #define CAT_npix_mgiop 242
280 #define CAT_crat_mgiop 243
281 #define CAT_fitpar_mgiop 244
282 
283 #define CAT_BSi 245
284 #define CAT_bbws 246
285 
286 #define CAT_a_swim 247
287 #define CAT_bb_swim 248
288 #define CAT_adg_swim 249
289 #define CAT_aph_swim 250
290 #define CAT_bbp_swim 251
291 
292 #define CAT_elev 252
293 #define CAT_Kd_jamet 253
294 #define CAT_chl_cdr 254
295 
296 //#define CAT_Kd_swim 255 /* phase-out */
297 #define CAT_iparb 256
298 #define CAT_parb 257
299 //#define CAT_tsm_swim 258 /* phase-out */
300 
301 #define CAT_microplankton_hirata 259
302 #define CAT_diatoms_hirata 260
303 #define CAT_greenalgae_hirata 261
304 #define CAT_picoplankton_hirata 262
305 #define CAT_prokaryotes_hirata 263
306 #define CAT_prochlorococcus_hirata 264
307 #define CAT_dinoflagellates_hirata 265
308 #define CAT_nanoplankton_hirata 266
309 #define CAT_picoeukaryotes_hirata 267
310 #define CAT_prymnesiophytes_hirata 268
311 /* 269 is open for use */
312 #define CAT_microplankton_uitz 270
313 #define CAT_nanoplankton_uitz 271
314 #define CAT_picoplankton_uitz 272
315 
316 /* additional SST SSES products */
317 #define CAT_bias_mean_sst 273
318 #define CAT_bias_mean_sst4 274
319 #define CAT_counts_sst 275
320 #define CAT_counts_sst4 276
321 
322 #define CAT_ag_412_mlrc 277
323 #define CAT_Sg_275_295_mlrc 278
324 #define CAT_Sg_300_600_mlrc 279
325 
326 #define CAT_npp_vgpm 280
327 #define CAT_npp_eppley 281
328 #define CAT_npp_cbpm2 282
329 
330 #define CAT_chl_abi 283
331 
332 #define CAT_Kd_rhos 284
333 #define CAT_CI_stumpf 285
334 #define CAT_MCI_stumpf 286
335 #define CAT_MPH_chl 287
336 #define CAT_flags_habs_mph 288
337 
338 #define CAT_sst3 289
339 #define CAT_flags_sst3 290
340 #define CAT_qual_sst3 291
341 #define CAT_bias_sst3 292
342 #define CAT_stdv_sst3 293
343 #define CAT_bias_mean_sst3 294
344 #define CAT_counts_sst3 295
345 
346 #define CAT_microplankton_abundanceksm 296
347 #define CAT_nanoplankton_abundanceksm 297
348 #define CAT_picoplankton_abundanceksm 298
349 
350 #define CAT_microplankton_volumeksm 299
351 #define CAT_nanoplankton_volumeksm 300
352 #define CAT_picoplankton_volumeksm 301
353 
354 #define CAT_microplankton_ratioksm 302
355 #define CAT_nanoplankton_ratioksm 303
356 #define CAT_picoplankton_ratioksm 304
357 
358 #define CAT_flags_habs 305
359 
360 #define CAT_npp_mld 306
361 #define CAT_npp_zno3 307
362 #define CAT_npp_par 308
363 #define CAT_npp_bbp 309
364 
365 /*additional giop products for aLMI*/
366 #define CAT_acdom_giop 310
367 #define CAT_anap_giop 311
368 #define CAT_bbph_giop 312
369 #define CAT_bbnap_giop 313
370 #define CAT_acdom_unc_giop 314
371 #define CAT_anap_unc_giop 315
372 #define CAT_bbph_unc_giop 316
373 #define CAT_bbnap_unc_giop 317
374 #define CAT_opt_siop_giop 318
375 
376 /* Additional Cyano Index products */
377 #define CAT_CI_cyano 319
378 #define CAT_CI_noncyano 320
379 
380 #define CAT_sst_treesum 321
381 
382 #define CAT_nKd_lin 322
383 
384 #define CAT_calcite_ci2 323
385 #define CAT_calcite_ci748 324
386 #define CAT_calcite_ci869 325
387 /*
388 in product.xml...but not here?
389 326 - delta_La
390 327 - delta_aot
391 330 - delta_epsilon
392 331 - delta_Rrs
393 
394 332 open for use
395 333 open for use
396 
397 334 - snr
398 335 - chi_min
399 */
400 
401 
402 /* Expanded 2-d and 3-d ancillary met-mainly products */
403 #define CAT_sfc_pressure 336
404 #define CAT_sfc_humidity 337
405 #define CAT_sfc_temp 338
406 /* the 3-d will be T, RH, HGT, Q(specific humidity) O3 profiles */
407 #define CAT_T_prof 339
408 #define CAT_RH_prof 340
409 #define CAT_HGT_prof 341
410 #define CAT_Q_prof 342
411 
412 #define CAT_nitrate 343
413 #define CAT_dsdi 344
414 
415 #define CAT_npp_cafe 345
416 #define CAT_avw 346
417 #define CAT_Rrs_brightness 347
418 #define CAT_lambda_max 348
419 #define CAT_O3_prof 349
420 
421 #define CAT_poc_stramski_hybrid 350
422 #define CAT_Cphyt 351
423 #define CAT_chl_unc 352
424 #define CAT_prochlorococcus 353
425 #define CAT_synechococcus 354
426 #define CAT_autotrophic_picoeukaryotes 355
427 
428 /* 356 through 444 open for use */
429 
430 /* Chimaera (and other algorithm?) cloud products */
431 #define CAT_Cld_water_cloud 440
432 #define CAT_Cld_ice_cloud 441
433 #define CAT_CER_2100 445
434 #define CAT_CER_1600 446
435 #define CAT_COT_2100 447
436 #define CAT_COT_1600 448
437 #define CAT_CER_1621 449
438 #define CAT_COT_1621 450
439 #define CAT_CWP_2100 451
440 #define CAT_CWP_1621 452
441 #define CAT_CWP_1600 453
442 #define CAT_Cld_Sfc_Type 454
443 #define CAT_Cld_Phase_2100 455
444 #define CAT_Cld_Non_Abs_Band 456
445 #define CAT_Cld_Phase_1600 457
446 #define CAT_Cld_Phase_1621 458
447 #define CAT_Cld_Top_Refl_650 459
448 #define CAT_Cld_Top_Refl_860 460
449 #define CAT_Cld_Top_Refl_1200 461
450 #define CAT_Cld_Top_Refl_1600 462
451 #define CAT_Cld_Top_Refl_2100 463
452 #define CAT_Surface_Albedo_650 464
453 #define CAT_Surface_Albedo_860 465
454 #define CAT_Surface_Albedo_1200 466
455 #define CAT_Surface_Albedo_1600 467
456 #define CAT_Surface_Albedo_2100 468
457 #define CAT_Cld_p 469
458 #define CAT_Cld_t 470
459 
460 #define CAT_COT_fail_2100 471
461 #define CAT_COT_fail_1600 472
462 #define CAT_COT_fail_1621 473
463 #define CAT_CER_fail_2100 474
464 #define CAT_CER_fail_1600 475
465 #define CAT_CER_fail_1621 476
466 #define CAT_CMP_fail_pct_2100 477
467 #define CAT_CMP_fail_pct_1600 478
468 #define CAT_CMP_fail_pct_1621 479
469 #define CAT_refl_loc_1600 480
470 #define CAT_refl_loc_2100 481
471 #define CAT_refl_loc_1621 482
472 
473 #define CAT_CER_2200 483
474 #define CAT_COT_2200 484
475 #define CAT_CWP_2200 485
476 #define CAT_Cld_Phase_2200 486
477 #define CAT_Cld_Top_Refl_2200 487
478 #define CAT_Surface_Albedo_2200 488
479 #define CAT_COT_fail_2200 489
480 #define CAT_CER_fail_2200 490
481 #define CAT_CMP_fail_pct_2200 491
482 #define CAT_refl_loc_2200 492
483 
484 #define CAT_Cld_h 493
485 
486 #define CAT_par_scalar 494
487 #define CAT_mu_0 495
488 #define CAT_par_below_surface 496
489 #define CAT_par2 497
490 #define CAT_taucld 498
491 #define CAT_clfr 499
492 
493 #define CAT_cth_alb_init 500
494 #define CAT_cth_alb_unc_init 501
495 #define CAT_cth_cod 502
496 #define CAT_cth_alb 503
497 #define CAT_cth_phase 504
498 #define CAT_cth_cod_all 505
499 
500 #define CAT_cth_lcod_all 506
501 #define CAT_cth_cth_all 507
502 #define CAT_cth_ctp_all 508
503 #define CAT_cth_alb_all 509
504 #define CAT_cth_cost_all 510
505 
506 #define CAT_cth_acost_all 511
507 #define CAT_cth_iter_all 512
508 #define CAT_cth_akdiag 513 /* not in product.xml? */
509 #define CAT_cth_dcod_all 514
510 #define CAT_cth_dlcod_all 515
511 
512 #define CAT_cth_dcth_all 516
513 #define CAT_cth_cth_raw_all 517
514 #define CAT_cth_ctt_all 518
515 #define CAT_cth_dctp_all 519
516 
517 // not all in order of id
518 #define CAT_cth_dctt_all 520
519 #define CAT_cth_dalb_all 521
520 #define CAT_cth_lcod 522
521 #define CAT_cth_cth_raw 523
522 #define CAT_cth_cost 524
523 #define CAT_cth_iter 525
524 #define CAT_cth_acost 526
525 #define CAT_ipar2 527
526 #define CAT_ipar_below_surface 528
527 
528 
529 #define CAT_cth_dcth 529
530 
531 /* WDR still need to add the uncertainty (d...)
532 #define CAT_cth_dcth_raw 530
533 */
534 
535 #define CAT_cth_dctp 531
536 #define CAT_cth_dctt 532
537 #define CAT_cth_dalb 533
538 // WDR prob not needed #define CAT_cth_dcth_raw_all 534
539 #define CAT_cth_dcod 535
540 #define CAT_cth_dlcod 536
541 
542 #define CAT_ipar_scalar 537
543 #define CAT_Kd_unc_KD2 538
544 #define CAT_fsat_unc 539
545 #define CAT_adgs_unc_giop 540
546 #define CAT_bbps_unc_giop 541
547 #define CAT_Kd_unc_lee 542
548 #define CAT_Cphyt_unc 543
549 
553 #define CAT_ndii 544
554 #define CAT_ndwi 545
555 #define CAT_ndsi 546
556 #define CAT_cci 547
557 #define CAT_pri 548
558 #define CAT_cire 549
559 #define CAT_car 550
560 #define CAT_ari 551
561 
562 /*SDP pigment algorithm*/
563 #define CAT_tchl_sdp 552
564 #define CAT_zea_sdp 553
565 #define CAT_dvchla_sdp 554
566 #define CAT_butfuco_sdp 555
567 #define CAT_hexfuco_sdp 556
568 #define CAT_allo_sdp 557
569 #define CAT_mvchlb_sdp 558
570 #define CAT_neo_sdp 559
571 #define CAT_viola_sdp 560
572 #define CAT_fuco_sdp 561
573 #define CAT_chlc12_sdp 562
574 #define CAT_chlc3_sdp 563
575 #define CAT_perid_sdp 564
576 #define CAT_flags_sdp 565
577 #define CAT_mRrs_sdp 566
578 #define CAT_mRrs_diff_sdp 567
579 #define CAT_d2Rrs_diff_sdp 568
580 
581 #endif