OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1b_misr.h
Go to the documentation of this file.
1 #ifndef L1B_MISR_H
2 #define L1B_MISR_H
3 
4 #define N_CAMERAS 9
5 
6 #define D2R 0.017453292520
7 
8 typedef struct misr_struct {
9  uint8_t multipleInput;
10 
11  int32_t startBlock;
12  int32_t endBlock;
13 
14  int32_t fileID[N_CAMERAS];
16 
17  int32_t ocean_block_numbers[180];
18  int8_t isOceanBlock[180];
19  int8_t offset[180];
20 
21  double radScaleFactors[4];
22 
23  double SolAzimuth[180*8][32];
24  double SolZenith[180*8][32];
25 
26  double SenAzimuth[N_CAMERAS][180*8][32];
27  double SenZenith[N_CAMERAS][180*8][32];
28 } misr_t;
29 
30 int openl1b_misr(filehandle *l1file);
31 int getRadScaleFactors( char *file, double rad_scl_factors[4]);
32 int readl1b_misr(filehandle *l1file, l1str *l1rec);
33 int reduce_res(uint16_t rad_data[4][2048]);
34 int interp_values( double *grid_values, double interpolated_values[16][512]);
35 int interp_values_dbl( int32_t diff_offset, double *grid_values,
36  double interpolated_values[16][512]);
37 int closel1b_misr(filehandle *l1file);
38 
39 #endif
int32 l1file(int32 sdfid, int32 *nsamp, int32 *nscans, int16 *dtynum)
Definition: l1stat_chk.c:586
int32_t endBlock
Definition: l1b_misr.h:12
int32_t blockTimeID[N_CAMERAS]
Definition: l1b_misr.h:15
#define N_CAMERAS
Definition: l1b_misr.h:4
int getRadScaleFactors(char *file, double rad_scl_factors[4])
Definition: l1b_misr.c:285
int32_t ocean_block_numbers[180]
Definition: l1b_misr.h:17
read l1rec
double radScaleFactors[4]
Definition: l1b_misr.h:21
int closel1b_misr(filehandle *l1file)
Definition: l1b_misr.c:895
double SolZenith[180 *8][32]
Definition: l1b_misr.h:24
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed file
Definition: HISTORY.txt:413
int32_t fileID[N_CAMERAS]
Definition: l1b_misr.h:14
int8_t offset[180]
Definition: l1b_misr.h:19
int8_t isOceanBlock[180]
Definition: l1b_misr.h:18
double SenAzimuth[N_CAMERAS][180 *8][32]
Definition: l1b_misr.h:26
double SenZenith[N_CAMERAS][180 *8][32]
Definition: l1b_misr.h:27
int interp_values(double *grid_values, double interpolated_values[16][512])
Definition: l1b_misr.c:672
int reduce_res(uint16_t rad_data[4][2048])
Definition: l1b_misr.c:814
double SolAzimuth[180 *8][32]
Definition: l1b_misr.h:23
uint8_t multipleInput
Definition: l1b_misr.h:9
int32_t startBlock
Definition: l1b_misr.h:11
int interp_values_dbl(int32_t diff_offset, double *grid_values, double interpolated_values[16][512])
Definition: l1b_misr.c:747
int readl1b_misr(filehandle *l1file, l1str *l1rec)
Definition: l1b_misr.c:333
int openl1b_misr(filehandle *l1file)
Definition: l1b_misr.c:33