Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
l1agen_seawifs
swl0_parms.h
Go to the documentation of this file.
1
#ifndef _SWL0_PARMS_H
2
#define _SWL0_PARMS_H
3
4
#define L01VERSION "4.5"
5
#define FATAL_ERROR 1
6
7
#define NBANDS 8
/* Number of spectral bands */
8
#define L0LEN 21504
/* L0 frame length in bytes */
9
#define MAXFRAMES 16000
/* Maximum number of frames per file */
10
#define MAXSCENES 100
/* Maximum number of scenes per file */
11
#define MAXTILTS 20
/* Maximum number of tilts per scene */
12
#define MINORBVEC 0
/* Minimum number of GPS vectors fit */
13
#define MINFRAMES 50
/* Minimum number of frames per scene */
14
#define MAXORBTAB 1000
/* Maximum orbit table entries */
15
16
#define GAC 0
/* L0 file type code for GAC */
17
#define LAC 0
/* L0 file type code for LAC */
18
#define HRPT 1
/* L0 file type code for HRPT */
19
#define GACTYPE 15
/* Minor frame type code for GAC */
20
#define LACTYPE 0
/* Minor frame type code for LAC */
21
#define LUNTYPE 1
/* Minor frame type code for LUN Cal */
22
#define SOLTYPE 2
/* Minor frame type code for SOL Cal */
23
#define IGCTYPE 3
/* Minor frame type code for IGN Cal */
24
#define TDITYPE 4
/* Minor frame type code for TDI Cal */
25
#define NPIXLAC 1285
/* Number of LAC pixels per scan */
26
#define NPIXGAC 248
/* Number of GAC pixels per scan */
27
#define SPIXLAC 1
/* First LAC pixel in scan */
28
#define SPIXGAC 147
/* First GAC pixel in scan */
29
#define IPIXLAC 1
/* LAC pixel increment in scan */
30
#define IPIXGAC 4
/* GAC pixel increment in scan */
31
32
#define O_SCID 3
/* Byte-offset to SCID field */
33
#define O_TIME 7
/* Byte-offset to frame timetag */
34
#define O_SOH 15
/* Byte-offset to SOH Block */
35
#define O_SGA 15
/* Byte-offset to SOH/SGA */
36
#define O_SAC 185
/* Byte-offset to SOH/SAC */
37
#define O_SAA 481
/* Byte-offset to SOH/SAA */
38
#define O_DATAGAC 790
/* Byte-offset to GAC image block */
39
#define O_DATALAC 878
/* Byte-offset to LAC image block */
40
#define O_INSTGAC 20950
/* Byte-offset to GAC instrument tlm */
41
#define O_INSTLAC 790
/* Byte-offset to LAC instrument tlm */
42
43
#define S_DATAGAC 4032
/* Byte-size of GAC image block */
44
#define S_DATALAC 20624
/* Byte-size of LAC image block */
45
46
#define DTGAC (10./3.)
/* Nominal GAC time difference (sec) */
47
#define DTLAC (1./6.)
/* Nominal LAC time difference (sec) */
48
#define CLOCKVAR 0.010
/* Nominal S/C clock variance (sec) */
49
50
#define DELSCENELAC 5
/* Sec thresh to break LAC scenes */
51
#define DELSCENEGAC 3000
/* Sec thresh to break GAC scenes */
52
53
#define SEADAS 0
54
#define SDPS 1
55
56
57
/*
58
* NOTES:
59
*
60
* The image block includes GTDI-PIX, START-PIX, DARK-PIX, IMAGE-PIX,
61
* and STOP-PIX.
62
*
63
*/
64
#endif
65
66
67
68
69
70
71
72