OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1a.h
Go to the documentation of this file.
1 
2 #ifndef L1A_H
3 #define L1A_H
4 
5 #if 0
6 #ifdef GENERAL
7 #define get_l1a_open get_l1a_open_all
8 #define get_l1a_record get_l1a_record_all
9 #define get_l1a_close get_l1a_close_all
10 #define put_l1a_open put_l1a_open_all
11 #define put_l1a_record put_l1a_record_all
12 #define put_l1a_close put_l1a_close_all
13 #define set_l1aget_buffer_blksize set_l1aget_buffer_blksize_all
14 #define set_l1aput_buffer_blksize set_l1aput_buffer_blksize_all
15 #endif /* GENERAL */
16 
17 #include "navigation.h"
18 #include "level_1a_index.h"
19 
20 #ifndef MAX_HDF
21 #define MAX_HDF 16
22 #endif
23 
24 #endif
25 
26 #ifndef MAX_HDF_L1AGET
27 #define MAX_HDF_L1AGET 4
28 #endif
29 
30 #include "level_1a_index.h"
31 
32 /* out of band correction */
33 #define OOB_OFF 0
34 #define OOB_DEFAULT_METHOD 1
35 #define OXYGEN_CORR_FACTOR 1.12f
36 extern int out_band_corr(float *radiances, float oxygen_factor, int nsample);
37 
38 /* calibration modification structure definition */
39 typedef struct cal_mod_def {
40  int flag; /* use flag: 0 - use cal file values
41  1 - use input gain, cal file offset
42  2 - use cal file gain, input offset
43  3 - use input gain and cal */
44  double gain[8]; /* calibration gain */
45  double offset[8]; /* calibration offset */
46 } cal_mod_struc;
47 
48 #endif /* L1A_H */
double offset[8]
Definition: calib_cal_l1a.h:16
double gain[8]
Definition: calib_cal_l1a.h:15
int out_band_corr(float *radiances, float oxygen_factor, int nsample)