OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
calViirs.c
Go to the documentation of this file.
1 #include <string.h>
2 
3 #define VIIRS_SCANS 203
4 
5 int main(int argc, char *argv[]) {
6 
7  char *l1aFilename = "/disk02/joel/VIIRSRUN/viirs_L1_test/TEST_DATA/L1A/V2015280115400.L1A_SNPP.nc";
8  char *l1aCalParFilename;
9 
10  VcstViirsCal_initialize(l1aFilename, l1aCalParFilename);
11 
12  int i;
13  static float *radptrs[16] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
14  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
15 
16  int iline, nbands = 16;
17  for (iline = 0; iline < VIIRS_SCANS * 16; iline++) {
18  VcstViirsCal_calibrateMOD(iline, nbands, &radptrs);
19  }
20 
21  // (band 0) radiance_[15][2000] = radptrs[0][15*3200+2000] = 86.9709167
22  // (band 1) radiance_[15][2000] = radptrs[1][15*3200+2000] = 54.40485
23 
24  return 0;
25 }
26 
void VcstViirsCal_calibrateMOD(int iScan, int nbands, float **l1bptrs)
int main(int argc, char *argv[])
Definition: calViirs.c:5
#define VIIRS_SCANS
Definition: calViirs.c:3
int32_t nbands
void VcstViirsCal_initialize(char *l1aFilename, char *l1aCalParFilename)
int i
Definition: decode_rs.h:71