OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
PD_pkt_data.h
Go to the documentation of this file.
1 #ifndef PD_PKT_DATA_H
2 #define PD_PKT_DATA_H
3 
4 /*
5 !C-INC************************************************************************
6 
7 !Description: This include file contains information about the kinds of
8  data that each type of packet contains, along with the sizes
9  of arrays' dimensions.
10 
11  All definitions in this file will begin with "PD_".
12  Definitions for Day and Night mode packets will begin with
13  "PD_DN_".
14  Definitions for Engineering group 1 packet 1 packets will begin
15  with "PD_E1P1".
16  Definitions for Engineering group 1 packet 2 packets will begin
17  with "PD_E1P2".
18  Definitions for Engineering group 2 packet 1 packets will begin
19  with "PD_E2P1".
20  Definitions for Engineering group 2 packet 2 packets will begin
21  with "PD_E2P2".
22 
23 
24 !Input Parameters:
25  N/A
26 
27 !Output Parameters:
28  N/A
29 
30 Return Values:
31  N/A
32 
33 Externally Defined:
34  None
35 
36 Called By:
37  N/A
38 
39 Routines Called:
40  N/A
41 
42 !Revision History:
43  Revision 2.0 1997/07/09 15:15
44  Tom Johnson/SAIC/GSC (johnson@ltpmail.gsfc.nasa.gov)
45  Created include file from Version 1 include files
46  modis_pkt_data_pos.h
47 
48  Revision 1.0 1996/06/19 16:30 EDT
49  Keith Degnan/SAIC/GSC (keith.degnan@gsfc.nasa.gov)
50  Created include module
51 
52 !Team-unique Header:
53  This software is developed by the MODIS Science
54  Data Support Team (SDST) for the National Aeronautics
55  and Space Administration (NASA), Goddard Space Flight
56  Center (GSFC), under contract NAS5-32373.
57 
58 !References and Credits:
59  None
60 
61 !Design Notes:
62  The ".h" below was specifically written for development in C.
63  Any other language choice may require reworking of the ".h"
64  before coding can begin.
65 
66 !END**********************************************************************
67 */
68 
69 #define PD_PKT_BUF_MAX 645
70 
71 #define PD_NUM_BITS_IN_BYTE 8
72 #define PD_NUM_BITS_IN_WORD 16
73 #define PD_NUM_BYTES_IN_WORD 2
74 #define PD_FIRST_BIT_IN_BYTE 0
75 #define PD_NUM_BITS_IN_RAD_DATA 12
76 
77 #define PD_PKT_CONTENTS_BYTE_OFFSET 18
78 #define PD_NUM_ELMTS_IN_DATA_FIELD_NIGHT_PKT 171
79 #define PD_NUM_ELMTS_IN_DATA_FIELD_DAY_PKT 415
80 
81 
82 /********************************************************/
83 /* The following contains information for the Day and */
84 /* Night mode packets. */
85 /********************************************************/
86 
87 #define PD_DN_FIRST_250M_BAND 1
88 #define PD_DN_LAST_250M_BAND 2
89 #define PD_DN_BAND_RATIO_250M 4
90 #define PD_DN_NUM_250M_BANDS 2
91 #define PD_DN_NUM_250M_DETECTORS 40
92 #define PD_DN_NUM_250M_DETECTORS_IN_IFOV 4
93 
94 #define PD_DN_FIRST_500M_BAND 3
95 #define PD_DN_LAST_500M_BAND 7
96 #define PD_DN_BAND_RATIO_500M 2
97 #define PD_DN_NUM_500M_BANDS 5
98 #define PD_DN_NUM_500M_DETECTORS 20
99 #define PD_DN_NUM_500M_DETECTORS_IN_IFOV 2
100 
101 #define PD_DN_FIRST_1KM_DAY_BAND 8
102 #define PD_DN_LAST_1KM_DAY_BAND 21
103 #define PD_DN_FIRST_1KM_NIGHT_BAND 22
104 #define PD_DN_LAST_1KM_NIGHT_BAND 38
105 #define PD_DN_BAND_RATIO_1KM 1
106 #define PD_DN_NUM_1KMDAY_BANDS 14
107 #define PD_DN_NUM_1KMDAY_DETECTORS 10
108 #define PD_DN_NUM_1KMNIGHT_BANDS 17
109 #define PD_DN_NUM_1KMNIGHT_DETECTORS 10
110 
111 #define PD_DN_NUM_IFOVS_IN_DAY_PKT 5
112 #define PD_DN_NUM_IFOVS_IN_NIGHT_PKT 10
113 
114 #define PD_DN_FIRST_IFOV_DAY_PKT_1 1
115 #define PD_DN_LAST_IFOV_DAY_PKT_1 5
116 #define PD_DN_FIRST_IFOV_DAY_PKT_2 6
117 #define PD_DN_LAST_IFOV_DAY_PKT_2 10
118 
119 
120 /********************************************************/
121 /* The following contains information for the */
122 /* Engineering group 1 packet 1 */
123 /********************************************************/
124 
125 #define PD_E1P1_NUM_FPA_DCR_OFFSETS 550
126 #define PD_E1P1_FPA_DCR_OFFSETS_BYTE_OFFSET 18
127 
128 
129 /********************************************************/
130 /* The following contains information for the */
131 /* Engineering group 1 packet 2 */
132 /********************************************************/
133 
134 #define PD_E1P2_NUM_EARTH_ENCODER_TIMES 78
135 #define PD_E1P2_EARTH_ENCODER_TIMES_BYTE_OFFSET 18
136 #define PD_E1P2_NUM_VIEW_SECTOR_DEFINITIONS 40
137 #define PD_E1P2_VIEW_SECTOR_DEFINITIONS_BYTE_OFFSET 174
138 #define PD_E1P2_NUM_VIEW_SECTOR_ACTUALS 24
139 #define PD_E1P2_VIEW_SECTOR_ACTUALS_BYTE_OFFSET 254
140 #define PD_E1P2_NUM_SCI_ENG_BYTES 212
141 #define PD_E1P2_SCI_ENG_BYTE_OFFSET 302
142 
143 
144 /********************************************************/
145 /* The following contains information for the */
146 /* Engineering group 2 packet 1 */
147 /********************************************************/
148 
149 #define PD_E2P1_NUM_HK_TELEM_BYTES 128
150 #define PD_E2P1_CURR_HK_BYTE_OFFSET 18
151 #define PD_E2P1_PRIOR_HK_BYTE_OFFSET 82
152 #define PD_E2P1_NUM_SC_ANCIL_WORDS 64
153 #define PD_E2P1_SC_ANCIL_BYTE_OFFSET 146
154 #define PD_E2P1_NUM_PARAM_BYTES 40
155 #define PD_E2P1_PARAM_BYTE_OFFSET 274
156 
157 
158 /********************************************************/
159 /* The following contains information for the */
160 /* Engineering group 2 packet 2 */
161 /********************************************************/
162 
163 #define PD_E2P2_NUM_PV_GAINS 550
164 #define PD_E2P2_PV_GAINS_BYTE_OFFSET 18
165 
166 
167 #endif /* PD_PKT_DATA_H */
168