OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
initialize_pixel_qual_data.c
Go to the documentation of this file.
1 #include "L1A_prototype.h"
2 #include "SC_scan.h"
3 #include "PH_pkt_hdr.h"
4 
5 
7 
8 /*
9 !C************************************************************************
10 
11 !Description: This function fills the Pixel Quality Data structure (section
12  3 of the MODIS Level 1A Data Product Format) with the
13  appropriate fill data (missing packet (1)).
14 
15 !Input Parameters:
16  None
17 
18 !Output Parameters:
19  SC_PIXEL_QUALITY_DATA_t *scan_pixel ** Pixel Quality Data
20  structure **
21 
22 Return Values:
23  None
24 
25 Externally Defined:
26  SC_PIXEL_QUALITY_DATA_t (SC_scan.h)
27  SC_MISSING_PACKET (SC_scan.h)
28  PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX (PH_pkt_hdr.h)
29  PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_LIMIT (PH_pkt_hdr.h)
30 
31 Called By:
32  initialize_scan
33 
34 Routines Called:
35  None
36 
37 !Revision History:
38  Revision 2.1 1997/08/16 12:04 EDT
39  Timi Adelekan/SAIC/GSC (adelekan@ltpmail.gsfc.nasa.gov)
40  Originated CODE
41 
42  Revision 2.0 1997/00/00 00:00
43  Tom Johnson/GSC (johnson@ltpmail.gsfc.nasa.gov)
44  Original design
45 
46 !Team-unique Header:
47  This software is developed by the MODIS Science
48  Data Support Team (SDST) for the National Aeronautics
49  and Space Administration (NASA), Goddard Space Flight
50  Center (GSFC), under contract NAS5-32373.
51 
52 !References and Credits:
53  None
54 
55 !Design Notes:
56  The CODE below was developed in C language.
57 
58 !END**********************************************************************
59 */
60 
61  {
62  /**************************************************************************/
63  /* */
64  /* Declare and Initialize Local Variables */
65  /* */
66  /**************************************************************************/
67 
68  int frame; /* Loop variable to count frames */
69 
70 
71  /**************************************************************************/
72  /* */
73  /* Set all elements of SC_PIXEL_QUALITY_DATA_t.SD_pix_qual to */
74  /* SC_MISSING_PACKET */
75  /* */
76  /* Set all elements of SC_PIXEL_QUALITY_DATA_t.SRCA_pix_qual to */
77  /* SC_MISSING_PACKET */
78  /* */
79  /* Set all elements of SC_PIXEL_QUALITY_DATA_t.BB_pix_qual to */
80  /* SC_MISSING_PACKET */
81  /* */
82  /* Set all elements of SC_PIXEL_QUALITY_DATA_t.SV_pix_qual to */
83  /* SC_MISSING_PACKET */
84  /* */
85  /**************************************************************************/
86 
87  for (frame = 0; frame < PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX; frame++)
88  {
89  scan_pixel->SD_pix_qual[frame][0] = SC_MISSING_PACKET;
90  scan_pixel->SD_pix_qual[frame][1] = SC_MISSING_PACKET;
91 
92  scan_pixel->SRCA_pix_qual[frame][0] = SC_MISSING_PACKET;
93  scan_pixel->SRCA_pix_qual[frame][1] = SC_MISSING_PACKET;
94 
95  scan_pixel->BB_pix_qual[frame][0] = SC_MISSING_PACKET;
96  scan_pixel->BB_pix_qual[frame][1] = SC_MISSING_PACKET;
97 
98  scan_pixel->SV_pix_qual[frame][0] = SC_MISSING_PACKET;
99  scan_pixel->SV_pix_qual[frame][1] = SC_MISSING_PACKET;
100  }
101 
102 
103  /**************************************************************************/
104  /* */
105  /* Set all elements of SC_PIXEL_QUALITY_DATA_t.EV_pix_qual to */
106  /* SC_MISSING_PACKET */
107  /* */
108  /**************************************************************************/
109 
110  for (frame = 0; frame < PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_LIMIT; frame++)
111  {
112  scan_pixel->EV_pix_qual[frame][0] = SC_MISSING_PACKET;
113  scan_pixel->EV_pix_qual[frame][1] = SC_MISSING_PACKET;
114  }
115 
116 
117  } /* End of routine initialize_pixel_qual_data */
#define SC_MISSING_PACKET
Definition: SC_scan.h:132
int16 EV_pix_qual[PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_LIMIT][PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP]
Definition: SC_scan.h:265
int16 SV_pix_qual[PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX][PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP]
Definition: SC_scan.h:263
#define PH_MOD_SOURCE_ID_EARTH_FRAME_CNT_LIMIT
Definition: PH_pkt_hdr.h:195
#define PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX
Definition: PH_pkt_hdr.h:216
void initialize_pixel_qual_data(SC_PIXEL_QUALITY_DATA_t *scan_pixel)
int16 SRCA_pix_qual[PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX][PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP]
Definition: SC_scan.h:259
int16 SD_pix_qual[PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX][PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP]
Definition: SC_scan.h:257
int16 BB_pix_qual[PH_MOD_SOURCE_ID_CAL_FRAME_CNT_MAX][PH_SEC_PKT_TYPE_MAX_PKTS_IN_GROUP]
Definition: SC_scan.h:261