OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
sgli.h
Go to the documentation of this file.
1 /*
2  * sgli.h
3  *
4  * W. Robinson, SAIC, 3 Oct 2016
5  *
6  */
7 
8 #ifndef SRC_SGLI_SGLI_H_
9 #define SRC_SGLI_SGLI_H_
10 
11 #include <gsl/gsl_errno.h>
12 #include <gsl/gsl_interp2d.h>
13 #include <gsl/gsl_spline2d.h>
14 
15 #include "h5io.h"
16 #include "filehandle.h"
17 
18 typedef struct sgli_struct {
19  char swir_ir_file[FILENAME_MAX];
20 } sgli_t;
21 
22 /* This is a grid-specific definition - 2 are expected for SGLI */
23 typedef struct grid_res_str_def {
24  double *xa, *ya; /* point to 1 of 2 grid point arrays for, x, y of
25  this grid */
26  int32_t npix_tie, nscn_sub_tie, tie_st_lin; /* tie point array
27  x, y size and actual start in full array */
28  int32_t resamp; /* resampling to the dominent resolution */
29 } grid_res_str;
30 
31 /* This is a sensor band-dependent geometry structure, per-band */
32 typedef struct band_geom_str_def {
33  h5io_str dsid[2]; /* for sensor as solar has no band dependence */
34  float scale[2];
35  float offset[2];
36  grid_res_str *grd_desc; /* specific grid resolution structure for this one */
37  gsl_spline2d *int_id_sen[3];
38  char *qual;
39 } band_geom_str;
40 
41 #endif /* SRC_SGLI_SGLI_H_ */
gsl_spline2d * int_id_sen[3]
Definition: sgli.h:37
double * ya
Definition: sgli.h:24
char swir_ir_file[FILENAME_MAX]
Definition: sgli.h:19
int32_t npix_tie
Definition: sgli.h:26
float offset[2]
Definition: sgli.h:35
grid_res_str * grd_desc
Definition: sgli.h:36
int32_t resamp
Definition: sgli.h:28
char * qual
Definition: sgli.h:38
float scale[2]
Definition: sgli.h:34
int32_t nscn_sub_tie
Definition: sgli.h:26
double * xa
Definition: sgli.h:24
int32_t tie_st_lin
Definition: sgli.h:26
h5io_str dsid[2]
Definition: sgli.h:33