OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_cal.h
Go to the documentation of this file.
1 #ifndef GETCAL_H
2 #define GETCAL_H
3 #include <stdio.h>
4 #include <stdlib.h>
5 
6 #define BANDS 8
7 #define DETS 4
8 #define GAINS 4
9 #define KNEE 4
10 #define TIME "Time"
11 #define RDERR -2
12 #define TMERR -3
13 #define BUFERR -4
14 
15 #define TEMPS "temps"
16 #define FPTEMPS "fp_temps"
17 #define TDILIST "TDI_list"
18 #define SCANMOD "scan_mod"
19 
20 #define REFYEAR "Reference Year"
21 #define REFDAY "Reference Day"
22 #define REFMIN "Reference Minute"
23 #define ENTRY_YEAR "entry_year"
24 #define ENTRY_DAY "entry_day"
25 #define SYEAR "syear"
26 #define SDAY "sday"
27 #define SMSEC "smsec"
28 #define EYEAR "eyear"
29 #define EDAY "eday"
30 #define EMSEC "emsec"
31 #define GAC "gac"
32 
33 #define CAL_CLASS "Calibration"
34 
35 static const char slp_flds[] = {
36  "g1d1,g1d2,g1d3,g1d4,g2d1,g2d2,g2d3,g2d4,g3d1,g3d2,g3d3,g3d4,g4d1,g4d2,g4d3,g4d4"
37 };
38 
39 static const char * const slp_names[] = {
40  "B1Slopes", "B2Slopes", "B3Slopes", "B4Slopes", "B5Slopes", "B6Slopes",
41  "B7Slopes", "B8Slopes"
42 };
43 
44 static const char * const parm_names[] = {
45  "B1Parms", "B2Parms", "B3Parms", "B4Parms", "B5Parms", "B6Parms",
46  "B7Parms", "B8Parms"
47 };
48 
49 
50 /* These fields are for new exponential cal table of January 2001 */
51 static const char OFFSET_FLDS[] = {
52  "g1offs1,g1offs2,g1offs3,g1offs4,g2offs1,g2offs2,g2offs3,g2offs4,g3offs1,g3offs2,g3offs3,g3offs4,g4offs1,g4offs2,g4offs3,g4offs4"
53 };
54 
55 static const char TFACTOR_FLDS_NEW[] = {"t_const,t_linear_1,t_exponential_1,t_linear_2,t_exponential_2,cal_offs,inst_tcorr,inst_tref,fp_tcorr,fp_tref"};
56 
57 static const char TFACTOR_FLDS[] = {"t_const,t_linear_1,t_exponential_1,t_linear_2,t_exponential_2,cal_offs"};
58 
59 static const char MIRROR_FLDS[] = {"ms1_const,ms1_linear_1,ms1_exponential_1,ms1_linear_2,ms1_exponential_2,ms2_const,ms2_linear_1,ms2_exponential_1,ms2_linear_2,ms2_exponential_2"};
60 
61 #endif /* GETCAL_H */