OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swl1_struc.h
Go to the documentation of this file.
1 #ifndef _SWL1_STRUC_H
2 #define _SWL1_STRUC_H
3 
4 #include "swl0_parms.h"
5 #include "swl0_types.h"
6 
7 typedef struct swl1_struct {
8  INT16 type; /* 0=LAC,1=LUN, ..., 15=GAC */
9  INT16 npix; /* pixels per scan (GAC: 248, LAC: 1285) */
10 
11  /* The fields that begin here are mimic the L1A hdf file spec */
12  INT32 msec; /* frame time millisecs of day */
13  BYTE eng_qual[4]; /* Engineering data out-of-range flags */
14  BYTE s_flags[4]; /* scan-line quality flags */
15  INT16 s_satp[8]; /* number of saturated pixels per band */
16  INT16 s_zerop[8]; /* number of zero pixels per band */
17  FLOAT32 slat; /* starting latitude of scan */
18  FLOAT32 slon; /* starting longitude of scan */
19  FLOAT32 clat; /* central latitude of scan */
20  FLOAT32 clon; /* central longitude of scan */
21  FLOAT32 elat; /* ending latitude of scan */
22  FLOAT32 elon; /* ending longitude of scan */
23  FLOAT32 csol_z; /* central solar zenith angle of scan */
24  FLOAT32 tilt; /* tilt angle (deg) */
25  INT16 scid[2]; /* raw S/C ID field */
26  INT16 ttag[4]; /* raw frame timetag */
27  BYTE soh[775]; /* raw SOH block */
28  INT16 inst[44]; /* raw instrument or ancillary tlm */
29  INT16 data[1285][8]; /* raw image data (counts) */
30  INT16 startpix[8]; /* raw start pixel per band */
31  INT16 stoppix[8]; /* raw stop pixel per band */
32  INT16 darkpix[8]; /* raw dark restore pixel per band */
33  INT16 gain[8]; /* gain setting per band */
34  INT16 tdi[8]; /* time delay and integration set per band */
35  FLOAT32 inst_ana[40]; /* converted instrument analog telemetry */
36  BYTE inst_dis[32]; /* converted instrument discrete telem */
37  FLOAT32 sc_ana[40]; /* converted spacecraft analog telemetry */
38  BYTE sc_dis[40]; /* converted spacecraft discrete telem */
39  INT16 scan_temp[8]; /* focal-plane temp per band (counts) */
40  INT16 side; /* mirror side */
41  FLOAT32 orb_vec[3]; /* orbit position vector at scan time */
42  FLOAT32 l_vert[3]; /* local vertical vector in ECEF frame */
43  FLOAT32 sun_ref[3]; /* solar reference vector in ECEF frame */
44  FLOAT32 att_ang[3]; /* attitude angles (yaw,roll,pitch) (deg) */
45  FLOAT32 sen_mat[3][3]; /* ECEF-to-sensor-frame matrix */
46  FLOAT32 scan_ell[6]; /* scan-track ellipse coefficients */
47  INT32 nflag[8]; /* Navigation flags */
48 
49  /* These are bonus fields */
50  FLOAT32 lon[1285]; /* scan longitude (deg) */
51  FLOAT32 lat[1285]; /* scan latitude (deg) */
52  FLOAT32 solz[1285]; /* scan solar zenith angle (deg) */
53  FLOAT32 sola[1285]; /* scan solar azimuth angle (deg) */
54  FLOAT32 senz[1285]; /* scan sensor zenith angle (deg) */
55  FLOAT32 sena[1285]; /* scan sensor azimuth angle (deg) */
56 
57 
58 } swl1rec;
59 
60 typedef struct l1met_struct {
68 
69 } l1met;
70 
71 
72 #endif
73 
74 
75 
INT16 ttag[4]
Definition: swl1_struc.h:26
INT16 s_zerop[8]
Definition: swl1_struc.h:16
INT32 nflag[8]
Definition: swl1_struc.h:47
INT16 tdi[8]
Definition: swl1_struc.h:34
INT32 msec
Definition: swl1_struc.h:12
INT32 zeropix[NBANDS]
Definition: swl1_struc.h:65
FLOAT32 sena[1285]
Definition: swl1_struc.h:55
FLOAT32 orb_vec[3]
Definition: swl1_struc.h:41
FLOAT32 slon
Definition: swl1_struc.h:18
INT16 inst[44]
Definition: swl1_struc.h:28
int32_t INT32
Definition: elements.h:6
FLOAT32 slat
Definition: swl1_struc.h:17
INT16 scid[2]
Definition: swl1_struc.h:25
FLOAT32 l_vert[3]
Definition: swl1_struc.h:42
FLOAT32 sun_ref[3]
Definition: swl1_struc.h:43
FLOAT32 tilt
Definition: swl1_struc.h:24
FLOAT32 sen_mat[3][3]
Definition: swl1_struc.h:45
BYTE inst_dis[32]
Definition: swl1_struc.h:36
INT32 gain2_satpix[NBANDS]
Definition: swl1_struc.h:62
FLOAT32 senz[1285]
Definition: swl1_struc.h:54
FLOAT32 sola[1285]
Definition: swl1_struc.h:53
INT16 stoppix[8]
Definition: swl1_struc.h:31
unsigned char BYTE
Definition: elements.h:4
short int INT16
Definition: elements.h:5
FLOAT32 lat[1285]
Definition: swl1_struc.h:51
FLOAT32 att_ang[3]
Definition: swl1_struc.h:44
INT16 type
Definition: swl1_struc.h:8
FLOAT32 clon
Definition: swl1_struc.h:20
BYTE soh[775]
Definition: swl1_struc.h:27
FLOAT32 inst_ana[40]
Definition: swl1_struc.h:35
BYTE s_flags[4]
Definition: swl1_struc.h:14
FLOAT32 solz[1285]
Definition: swl1_struc.h:52
INT32 gain2_nonsatpix[NBANDS]
Definition: swl1_struc.h:64
float FLOAT32
Definition: elements.h:7
FLOAT32 clat
Definition: swl1_struc.h:19
INT16 side
Definition: swl1_struc.h:40
INT16 npix
Definition: swl1_struc.h:9
FLOAT32 elat
Definition: swl1_struc.h:21
FLOAT32 lon[1285]
Definition: swl1_struc.h:50
FLOAT32 csol_z
Definition: swl1_struc.h:23
FLOAT32 sc_ana[40]
Definition: swl1_struc.h:37
INT32 gain1_nonsatpix[NBANDS]
Definition: swl1_struc.h:63
FLOAT32 scan_ell[6]
Definition: swl1_struc.h:46
INT32 gain1_satpix[NBANDS]
Definition: swl1_struc.h:61
BYTE sc_dis[40]
Definition: swl1_struc.h:38
FLOAT32 elon
Definition: swl1_struc.h:22
FLOAT32 gain1_mean_rad[NBANDS]
Definition: swl1_struc.h:66
INT16 gain[8]
Definition: swl1_struc.h:33
INT16 startpix[8]
Definition: swl1_struc.h:30
INT16 darkpix[8]
Definition: swl1_struc.h:32
INT16 scan_temp[8]
Definition: swl1_struc.h:39
@ NBANDS
Definition: make_L3_v1.1.c:53
INT16 s_satp[8]
Definition: swl1_struc.h:15
INT16 data[1285][8]
Definition: swl1_struc.h:29
FLOAT32 gain2_mean_rad[NBANDS]
Definition: swl1_struc.h:67