OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
aviris.h
Go to the documentation of this file.
1 /*
2  * aviris.h
3  *
4  * Created on: May 18, 2015
5  * Author: rhealy
6  */
7 
8 #ifndef BILIO_AVIRIS_H_
9 #define BILIO_AVIRIS_H_
10 #include <gsl/gsl_errno.h>
11 #include <gsl/gsl_spline.h>
12 #include <gsl/gsl_sort_double.h>
13 #include <gsl/gsl_fit.h>
14 #include <proj.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 //typedef struct aviris_l1b_t {
21 //
22 //int npixels; /**< number of pixels in AVIRIS */
23 //int nscans; /**< number of scans in AVIRIS */
24 //int nbands; /**< number of visible bands in AVIRIS */
25 
26 //} aviris_l1b_t;
27 
28 typedef struct aviris4orca_struct {
29  int32_t year, day, month, doy, msec, hour, min;
30  float sec;
32  // double **sena, **senz, **sola, **solz, **utc;
33  float *sena, *senz, *sola, *solz, *utc;
34  // double *lat, *lon, *elev;
36  float *Lt;
37  float *scale_factor, *alt;
38  float *wave, *fwhm;
39  PJ *pj;
41  float pixelSize;
42  double *gain, *lon, *lat, scantime;
46  FILE *av_fp;
47  gsl_spline *spline;
48  gsl_interp_accel *spl_acc;
49 } aviris4ocia_t;
50 
51 
52 
53 int close_aviris(aviris4ocia_t *data);
54 aviris4ocia_t* open_aviris(char *filename, char *imgfile, char *navfile, char *gainfile, aviris4ocia_t **data);
55 int read_aviris(aviris4ocia_t *data, int32_t recnum);
56 int checkAvProcessFile(char *filename, char *hdrfile, char *imgfile, char *navfile, char *gainfile, int itemsize);
57 
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* BILIO_AVIRIS_H_ */
float * senz
Definition: aviris.h:33
FILE * av_fp
Definition: aviris.h:46
int32_t npix
Definition: aviris.h:31
float * elev
Definition: aviris.h:35
double scantime
Definition: aviris.h:42
int close_aviris(aviris4ocia_t *data)
Definition: read_aviris.c:822
gsl_interp_accel * spl_acc
Definition: aviris.h:48
int32_t min
Definition: aviris.h:29
float * fwhm
Definition: aviris.h:38
aviris4ocia_t * open_aviris(char *filename, char *imgfile, char *navfile, char *gainfile, aviris4ocia_t **data)
Definition: read_aviris.c:175
int32_t wgs_nscan
Definition: aviris.h:31
int checkAvProcessFile(char *filename, char *hdrfile, char *imgfile, char *navfile, char *gainfile, int itemsize)
Definition: read_aviris.c:831
int32_t msec
Definition: aviris.h:29
float rotation
Definition: aviris.h:40
int32_t wgs_npix
Definition: aviris.h:31
float * Lt
Definition: aviris.h:36
float * scale_factor
Definition: aviris.h:37
float northing
Definition: aviris.h:40
read recnum
double * lon
Definition: aviris.h:42
int32_t doy
Definition: aviris.h:29
int32_t year
Definition: aviris.h:29
int read_aviris(aviris4ocia_t *data, int32_t recnum)
Definition: read_aviris.c:710
char filename[FILENAME_MAX]
Definition: atrem_corl1.h:122
float * sena
Definition: aviris.h:33
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
float * sola
Definition: aviris.h:33
int32_t month
Definition: aviris.h:29
float * utc
Definition: aviris.h:33
int32_t day
Definition: aviris.h:29
double * gain
Definition: aviris.h:42
float * solz
Definition: aviris.h:33
float * wave
Definition: aviris.h:38
int32_t hour
Definition: aviris.h:29
float pixelSize
Definition: aviris.h:41
int32_t nscans
Definition: aviris.h:31
float * alt
Definition: aviris.h:37
gsl_spline * spline
Definition: aviris.h:47
double * lat
Definition: aviris.h:42