A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
l1agen_seawifs
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
{
61
INT32
gain1_satpix
[
NBANDS
];
/* */
62
INT32
gain2_satpix
[
NBANDS
];
/* */
63
INT32
gain1_nonsatpix
[
NBANDS
];
/* */
64
INT32
gain2_nonsatpix
[
NBANDS
];
/* */
65
INT32
zeropix
[
NBANDS
];
/* */
66
FLOAT32
gain1_mean_rad
[
NBANDS
];
/* */
67
FLOAT32
gain2_mean_rad
[
NBANDS
];
/* */
68
69
} l1met;
70
71
72
#endif
73
74
75
swl1_struct::ttag
INT16 ttag[4]
Definition:
swl1_struc.h:26
swl1_struct::s_zerop
INT16 s_zerop[8]
Definition:
swl1_struc.h:16
swl1_struct
Definition:
swl1_struc.h:7
swl1_struct::nflag
INT32 nflag[8]
Definition:
swl1_struc.h:47
swl1_struct::tdi
INT16 tdi[8]
Definition:
swl1_struc.h:34
swl1_struct::msec
INT32 msec
Definition:
swl1_struc.h:12
l1met_struct::zeropix
INT32 zeropix[NBANDS]
Definition:
swl1_struc.h:65
swl1_struct::sena
FLOAT32 sena[1285]
Definition:
swl1_struc.h:55
swl1_struct::orb_vec
FLOAT32 orb_vec[3]
Definition:
swl1_struc.h:41
swl0_types.h
swl1_struct::slon
FLOAT32 slon
Definition:
swl1_struc.h:18
swl1_struct::inst
INT16 inst[44]
Definition:
swl1_struc.h:28
INT32
int32_t INT32
Definition:
elements.h:6
swl1_struct::slat
FLOAT32 slat
Definition:
swl1_struc.h:17
swl1_struct::scid
INT16 scid[2]
Definition:
swl1_struc.h:25
swl1_struct::l_vert
FLOAT32 l_vert[3]
Definition:
swl1_struc.h:42
swl1_struct::sun_ref
FLOAT32 sun_ref[3]
Definition:
swl1_struc.h:43
swl1_struct::tilt
FLOAT32 tilt
Definition:
swl1_struc.h:24
swl1_struct::sen_mat
FLOAT32 sen_mat[3][3]
Definition:
swl1_struc.h:45
swl1_struct::inst_dis
BYTE inst_dis[32]
Definition:
swl1_struc.h:36
l1met_struct::gain2_satpix
INT32 gain2_satpix[NBANDS]
Definition:
swl1_struc.h:62
swl1_struct::senz
FLOAT32 senz[1285]
Definition:
swl1_struc.h:54
swl1_struct::sola
FLOAT32 sola[1285]
Definition:
swl1_struc.h:53
swl1_struct::stoppix
INT16 stoppix[8]
Definition:
swl1_struc.h:31
BYTE
unsigned char BYTE
Definition:
elements.h:4
INT16
short int INT16
Definition:
elements.h:5
swl1_struct::lat
FLOAT32 lat[1285]
Definition:
swl1_struc.h:51
swl1_struct::att_ang
FLOAT32 att_ang[3]
Definition:
swl1_struc.h:44
swl1_struct::type
INT16 type
Definition:
swl1_struc.h:8
swl1_struct::clon
FLOAT32 clon
Definition:
swl1_struc.h:20
swl1_struct::soh
BYTE soh[775]
Definition:
swl1_struc.h:27
swl1_struct::inst_ana
FLOAT32 inst_ana[40]
Definition:
swl1_struc.h:35
swl1_struct::s_flags
BYTE s_flags[4]
Definition:
swl1_struc.h:14
swl1_struct::solz
FLOAT32 solz[1285]
Definition:
swl1_struc.h:52
l1met_struct::gain2_nonsatpix
INT32 gain2_nonsatpix[NBANDS]
Definition:
swl1_struc.h:64
FLOAT32
float FLOAT32
Definition:
elements.h:7
swl1_struct::clat
FLOAT32 clat
Definition:
swl1_struc.h:19
eng_qual
Definition:
eng_qual.h:87
swl1_struct::side
INT16 side
Definition:
swl1_struc.h:40
swl1_struct::npix
INT16 npix
Definition:
swl1_struc.h:9
swl1_struct::elat
FLOAT32 elat
Definition:
swl1_struc.h:21
swl1_struct::lon
FLOAT32 lon[1285]
Definition:
swl1_struc.h:50
swl1_struct::csol_z
FLOAT32 csol_z
Definition:
swl1_struc.h:23
swl1_struct::sc_ana
FLOAT32 sc_ana[40]
Definition:
swl1_struc.h:37
l1met_struct::gain1_nonsatpix
INT32 gain1_nonsatpix[NBANDS]
Definition:
swl1_struc.h:63
swl1_struct::scan_ell
FLOAT32 scan_ell[6]
Definition:
swl1_struc.h:46
l1met_struct
Definition:
swl1_struc.h:60
NBANDS
@ NBANDS
Definition:
make_L3_v1.1.c:53
l1met_struct::gain1_satpix
INT32 gain1_satpix[NBANDS]
Definition:
swl1_struc.h:61
swl1_struct::sc_dis
BYTE sc_dis[40]
Definition:
swl1_struc.h:38
swl1_struct::elon
FLOAT32 elon
Definition:
swl1_struc.h:22
swl0_parms.h
l1met_struct::gain1_mean_rad
FLOAT32 gain1_mean_rad[NBANDS]
Definition:
swl1_struc.h:66
swl1_struct::gain
INT16 gain[8]
Definition:
swl1_struc.h:33
swl1_struct::startpix
INT16 startpix[8]
Definition:
swl1_struc.h:30
swl1_struct::darkpix
INT16 darkpix[8]
Definition:
swl1_struc.h:32
swl1_struct::scan_temp
INT16 scan_temp[8]
Definition:
swl1_struc.h:39
swl1_struct::s_satp
INT16 s_satp[8]
Definition:
swl1_struc.h:15
swl1_struct::data
INT16 data[1285][8]
Definition:
swl1_struc.h:29
l1met_struct::gain2_mean_rad
FLOAT32 gain2_mean_rad[NBANDS]
Definition:
swl1_struc.h:67