ocssw  1.0
/disk01/web/ocssw/build/src/l1agen_modis/PD_pkt_data.h (r8084/r3)
Go to the documentation of this file.
00001 #ifndef PD_PKT_DATA_H
00002 #define PD_PKT_DATA_H
00003 
00004 /*
00005 !C-INC************************************************************************
00006 
00007 !Description:  This include file contains information about the kinds of
00008                data that each type of packet contains, along with the sizes
00009                of arrays' dimensions.
00010 
00011                All definitions in this file will begin with "PD_".
00012                Definitions for Day and Night mode packets will begin with 
00013                "PD_DN_".
00014                Definitions for Engineering group 1 packet 1 packets will begin
00015                with "PD_E1P1".
00016                Definitions for Engineering group 1 packet 2 packets will begin
00017                with "PD_E1P2".
00018                Definitions for Engineering group 2 packet 1 packets will begin
00019                with "PD_E2P1".
00020                Definitions for Engineering group 2 packet 2 packets will begin
00021                with "PD_E2P2".
00022 
00023 
00024 !Input Parameters:
00025                N/A
00026 
00027 !Output Parameters:
00028                N/A
00029 
00030 Return Values: 
00031                N/A
00032 
00033 Externally Defined:  
00034                None 
00035 
00036 Called By:
00037                N/A
00038 
00039 Routines Called:
00040                N/A
00041 
00042 !Revision History:
00043                Revision 2.0  1997/07/09  15:15
00044                Tom Johnson/SAIC/GSC (johnson@ltpmail.gsfc.nasa.gov)
00045                Created include file from Version 1 include files
00046                modis_pkt_data_pos.h
00047 
00048                Revision 1.0  1996/06/19  16:30 EDT
00049                Keith Degnan/SAIC/GSC (keith.degnan@gsfc.nasa.gov)
00050                Created include module
00051 
00052 !Team-unique Header:
00053                This software is developed by the MODIS Science
00054                Data Support Team (SDST) for the National Aeronautics
00055                and Space Administration (NASA), Goddard Space Flight
00056                Center (GSFC), under contract NAS5-32373.
00057 
00058 !References and Credits:
00059                None
00060 
00061 !Design Notes: 
00062                The ".h" below was specifically written for development in C.
00063                Any other language choice may require reworking of the ".h"
00064                before coding can begin.
00065 
00066 !END**********************************************************************
00067 */
00068 
00069 #define  PD_PKT_BUF_MAX                              645
00070 
00071 #define  PD_NUM_BITS_IN_BYTE                           8 
00072 #define  PD_NUM_BITS_IN_WORD                          16 
00073 #define  PD_NUM_BYTES_IN_WORD                          2 
00074 #define  PD_FIRST_BIT_IN_BYTE                          0 
00075 #define  PD_NUM_BITS_IN_RAD_DATA                      12
00076 
00077 #define  PD_PKT_CONTENTS_BYTE_OFFSET                  18 
00078 #define  PD_NUM_ELMTS_IN_DATA_FIELD_NIGHT_PKT        171
00079 #define  PD_NUM_ELMTS_IN_DATA_FIELD_DAY_PKT          415
00080 
00081 
00082 /********************************************************/
00083 /*  The following contains information for the Day and  */
00084 /*  Night mode packets.                                 */
00085 /********************************************************/
00086 
00087 #define  PD_DN_FIRST_250M_BAND                         1  
00088 #define  PD_DN_LAST_250M_BAND                          2 
00089 #define  PD_DN_BAND_RATIO_250M                         4  
00090 #define  PD_DN_NUM_250M_BANDS                          2
00091 #define  PD_DN_NUM_250M_DETECTORS                     40
00092 #define  PD_DN_NUM_250M_DETECTORS_IN_IFOV              4  
00093 
00094 #define  PD_DN_FIRST_500M_BAND                         3 
00095 #define  PD_DN_LAST_500M_BAND                          7  
00096 #define  PD_DN_BAND_RATIO_500M                         2 
00097 #define  PD_DN_NUM_500M_BANDS                          5
00098 #define  PD_DN_NUM_500M_DETECTORS                     20
00099 #define  PD_DN_NUM_500M_DETECTORS_IN_IFOV              2  
00100 
00101 #define  PD_DN_FIRST_1KM_DAY_BAND                      8 
00102 #define  PD_DN_LAST_1KM_DAY_BAND                      21  
00103 #define  PD_DN_FIRST_1KM_NIGHT_BAND                   22 
00104 #define  PD_DN_LAST_1KM_NIGHT_BAND                    38  
00105 #define  PD_DN_BAND_RATIO_1KM                          1  
00106 #define  PD_DN_NUM_1KMDAY_BANDS                       14
00107 #define  PD_DN_NUM_1KMDAY_DETECTORS                   10
00108 #define  PD_DN_NUM_1KMNIGHT_BANDS                     17
00109 #define  PD_DN_NUM_1KMNIGHT_DETECTORS                 10
00110 
00111 #define  PD_DN_NUM_IFOVS_IN_DAY_PKT                    5  
00112 #define  PD_DN_NUM_IFOVS_IN_NIGHT_PKT                 10  
00113 
00114 #define  PD_DN_FIRST_IFOV_DAY_PKT_1                    1
00115 #define  PD_DN_LAST_IFOV_DAY_PKT_1                     5
00116 #define  PD_DN_FIRST_IFOV_DAY_PKT_2                    6
00117 #define  PD_DN_LAST_IFOV_DAY_PKT_2                    10
00118 
00119 
00120 /********************************************************/
00121 /*  The following contains information for the          */
00122 /*  Engineering group 1 packet 1                        */
00123 /********************************************************/
00124 
00125 #define  PD_E1P1_NUM_FPA_DCR_OFFSETS                 550 
00126 #define  PD_E1P1_FPA_DCR_OFFSETS_BYTE_OFFSET          18
00127 
00128 
00129 /********************************************************/
00130 /*  The following contains information for the          */
00131 /*  Engineering group 1 packet 2                        */
00132 /********************************************************/
00133 
00134 #define  PD_E1P2_NUM_EARTH_ENCODER_TIMES              78 
00135 #define  PD_E1P2_EARTH_ENCODER_TIMES_BYTE_OFFSET      18
00136 #define  PD_E1P2_NUM_VIEW_SECTOR_DEFINITIONS          40
00137 #define  PD_E1P2_VIEW_SECTOR_DEFINITIONS_BYTE_OFFSET 174
00138 #define  PD_E1P2_NUM_VIEW_SECTOR_ACTUALS              24
00139 #define  PD_E1P2_VIEW_SECTOR_ACTUALS_BYTE_OFFSET     254
00140 #define  PD_E1P2_NUM_SCI_ENG_BYTES                   212 
00141 #define  PD_E1P2_SCI_ENG_BYTE_OFFSET                 302
00142 
00143 
00144 /********************************************************/
00145 /*  The following contains information for the          */
00146 /*  Engineering group 2 packet 1                        */
00147 /********************************************************/
00148 
00149 #define  PD_E2P1_NUM_HK_TELEM_BYTES                  128 
00150 #define  PD_E2P1_CURR_HK_BYTE_OFFSET                  18 
00151 #define  PD_E2P1_PRIOR_HK_BYTE_OFFSET                 82 
00152 #define  PD_E2P1_NUM_SC_ANCIL_WORDS                   64 
00153 #define  PD_E2P1_SC_ANCIL_BYTE_OFFSET                146 
00154 #define  PD_E2P1_NUM_PARAM_BYTES                      40 
00155 #define  PD_E2P1_PARAM_BYTE_OFFSET                   274 
00156 
00157 
00158 /********************************************************/
00159 /*  The following contains information for the          */
00160 /*  Engineering group 2 packet 2                        */
00161 /********************************************************/
00162 
00163 #define  PD_E2P2_NUM_PV_GAINS                        550 
00164 #define  PD_E2P2_PV_GAINS_BYTE_OFFSET                 18
00165 
00166 
00167 #endif  /* PD_PKT_DATA_H */
00168