OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
initialize_id_table.c
Go to the documentation of this file.
1 #include "L1A_prototype.h"
2 #include "VU_vdata_utility.h"
3 
4 void initialize_id_table (void)
5 
6 /*
7 !C************************************************************************
8 
9 !Description: This function prepares the Vdata ID table for use.
10 
11 !Input Parameters:
12  None
13 
14 !Output Parameters:
15  None
16 
17 Return Values:
18  None
19 
20 Externally Defined:
21  VU_MAX_NUMBER_OF_VDATAS (VU_vdata_utility.h)
22  VU_EMPTY (VU_vdata_utility.h)
23  global_VU_ID_TABLE_READY (level1a)
24  global_VU_VDATA_ID (level1a)
25 
26 Called By:
27  remember
28 
29 Routines Called:
30  None
31 
32 !Revision History:
33  Revision 2.0 1997/10/02 13:35 EDT
34  Timi Adelekan/SAIC/GSC (adelekan@ltpmail.gsfc.nasa.gov)
35  Originated Code.
36 
37  Revision 1.0 1997/07/14 15:58 EDT
38  David Catozzi/SAIC/GSC (cato@ltpmail.gsfc.nasa.gov)
39  Originated code development.
40 
41 !Team-unique Header:
42  This software is developed by the MODIS Science
43  Data Support Team (SDST) for the National Aeronautics
44  and Space Administration (NASA), Goddard Space Flight
45  Center (GSFC), under contract NAS5-32373.
46 
47 !References and Credits:
48  None
49 
50 !Design Notes:
51  This is a private function - only to be used by functions
52  internal to the Vdata_id_table.
53 
54 !END************************************************************************
55 */
56 
57  {
58  /**************************************************************************/
59  /* */
60  /* Declare the global variables. */
61  /* */
62  /**************************************************************************/
63 
64  extern VU_ID_TABLE global_VU_VDATA_ID[VU_MAX_NUMBER_OF_VDATAS];
65 
66  extern int global_VU_ID_TABLE_READY;
67 
68 
69  /**************************************************************************/
70  /* */
71  /* Declare the local variables and initialize them. */
72  /* */
73  /**************************************************************************/
74  /* */
75  /* Set index to 0 */
76  /* */
77  /**************************************************************************/
78 
79  int16 index = 0;
80 
81 
82  /**************************************************************************/
83  /* */
84  /* DO_FOR ( index = 0 to VU_MAX_NUMBER_OF_VDATAS-1 ) */
85  /* set global_VU_VDATA_ID[index].id to VU_EMPTY */
86  /* set global_VU_VDATA_ID[index].name to "EMPTY_SLOT" */
87  /* END_DO */
88  /* */
89  /* set global_VU_ID_TABLE_READY to TRUE */
90  /* */
91  /**************************************************************************/
92 
93  for (index = 0; index < VU_MAX_NUMBER_OF_VDATAS; index++) {
96  }
97 
99 
100  } /* End of routine initialize_id_table */
an array had not been initialized Several spelling and grammar corrections were which is read from the appropriate MCF the above metadata values were hard coded A problem calculating the average background DN for SWIR bands when the moon is in the space view port was corrected The new algorithm used to calculate the average background DN for all reflective bands when the moon is in the space view port is now the same as the algorithm employed by the thermal bands For non SWIR changes in the averages are typically less than Also for non SWIR the black body DNs remain a backup in case the SV DNs are not available For SWIR the changes in computed averages were larger because the old which used the black body suffered from contamination by the micron leak As a consequence of the if SV DNs are not available for the SWIR the EV pixels will not be the granule time is used to identify the appropriate tables within the set given for one LUT the first two or last two tables respectively will be used for the interpolation If there is only one LUT in the set of it will be treated as a constant LUT The manner in which Earth View data is checked for saturation was changed Previously the raw Earth View DNs and Space View DNs were checked against the lookup table values contained in the table dn_sat The change made is to check the raw Earth and Space View DNs to be sure they are less than the maximum saturation value and to check the Space View subtracted Earth View dns against a set of values contained in the new lookup table dn_sat_ev The metadata configuration and ASSOCIATEDINSTRUMENTSHORTNAME from the MOD02HKM product The same metatdata with extensions and were removed from the MOD021KM and MOD02OBC products ASSOCIATEDSENSORSHORTNAME was set to MODIS in all products These changes are reflected in new File Specification which users may consult for exact the pow functions were eliminated in Emissive_Cal and Emissive bands replaced by more efficient code Other calculations throughout the code were also made more efficient Aside from a few round off there was no difference to the product The CPU time decreased by about for a day case and for a night case A minor bug in calculating the uncertainty index for emissive bands was corrected The frame index(0-based) was previously being used the frame number(1-based) should have been used. There were only a few minor changes to the uncertainty index(maximum of 1 digit). 3. Some inefficient arrays(Sigma_RVS_norm_sq) were eliminated and some code lines in Preprocess_L1A_Data were moved into Process_OBCEng_Emiss. There were no changes to the product. Required RAM was reduced by 20 MB. Now
integer, parameter int16
Definition: cubeio.f90:3
#define VU_MAX_NUMBER_OF_VDATAS
#define TRUE
Definition: rice.h:165
#define VU_EMPTY
VU_ID_TABLE global_VU_VDATA_ID[VU_MAX_NUMBER_OF_VDATAS]
Definition: level1a.c:36
void initialize_id_table(void)
int global_VU_ID_TABLE_READY
Definition: level1a.c:26
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")
#define EN_EMPTY_SLOT
Definition: EN_eng_data.h:83