OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
compute_global_time_offsets.c
Go to the documentation of this file.
1 #include "L1A_prototype.h"
2 #include "PGS_TYPES.h"
3 #include "SC_scan.h"
4 
5 void compute_global_time_offsets (PGSt_double scan_rate)
6 
7 /*
8 !C************************************************************************
9 
10 !Description: This function will compute the time offsets from the SD time
11  for each sector within a scan based on the scan rate.
12 
13 !Input Parameters:
14  PGSt_double scan_rate ** The length of each scan in **
15  ** seconds **
16 
17 !Output Parameters:
18  None
19 
20 Return Values:
21  None
22 
23 Externally Defined:
24  PGSt_double (PGS_types.h)
25  SC_SD_TIME_OFFSET_PERCENTAGE (SC_scan.h)
26  SC_SRCA_TIME_OFFSET_PERCENTAGE (SC_scan.h)
27  SC_BB_TIME_OFFSET_PERCENTAGE (SC_scan.h)
28  SC_SV_TIME_OFFSET_PERCENTAGE (SC_scan.h)
29  SC_EV_TIME_OFFSET_PERCENTAGE (SC_scan.h)
30 
31 Called By:
32  initialize_level1a
33 
34 Routines Called:
35  None
36 
37 !Revision History:
38  Revision 2.0 1997/08/26 15:03 EDT
39  Timi Adelekan/SAIC/GSC (adelekan@ltpmail.gsfc.nasa.gov)
40  Originated Code.
41 
42  Revision 1.0 1997/07/22 15:16 EDT
43  Timi Adelekan/SAIC/GSC (adelekan@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 is written in C language.
57 
58 !END**********************************************************************
59 */
60 
61  {
62  /***************************************************************************/
63  /* */
64  /* Define Global Variables */
65  /* */
66  /***************************************************************************/
67 
68  extern PGSt_double global_time_offset_array[5]; /* array to hold the time */
69  /* offsets for each sector */
70 
71 
72  /***************************************************************************/
73  /* Set global_time_offset_array[0] equal to */
74  /* SC_SD_TIME_OFFSET_PERCENTAGE * scan_rate */
75  /* (to calculate the SD time offset from the SD sector) */
76  /* */
77  /* Set global_time_offset_array[1] equal to */
78  /* SC_SRCA_TIME_OFFSET_PERCENTAGE * scan_rate */
79  /* (to calculate the SRCA time offset from the SD sector) */
80  /* */
81  /* Set global_time_offset_array[2] equal to */
82  /* SC_BB_TIME_OFFSET_PERCENTAGE * scan_rate */
83  /* (to calculate the BB time offset from the SD sector) */
84  /* */
85  /* Set global_time_offset_array[3] equal to */
86  /* SC_SV_TIME_OFFSET_PERCENTAGE * scan_rate */
87  /* (to calculate the SV time offset from the SD sector) */
88  /* */
89  /* Set global_time_offset_array[4] equal to */
90  /* SC_EV_TIME_OFFSET_PERCENTAGE * scan_rate */
91  /* (to calculate the EV time offset from the SD sector) */
92  /* */
93  /***************************************************************************/
94 
96 
98 
100 
102 
104 
105  } /* End of routine compute_global_time_offsets */
#define SC_SV_TIME_OFFSET_PERCENTAGE
Definition: SC_scan.h:119
#define SC_SRCA_TIME_OFFSET_PERCENTAGE
Definition: SC_scan.h:117
void compute_global_time_offsets(PGSt_double scan_rate)
PGSt_double global_time_offset_array[SECTOR_TIME_OFFSETS]
Definition: level1a.c:32
#define SC_EV_TIME_OFFSET_PERCENTAGE
Definition: SC_scan.h:120
#define SC_BB_TIME_OFFSET_PERCENTAGE
Definition: SC_scan.h:118
#define SC_SD_TIME_OFFSET_PERCENTAGE
Definition: SC_scan.h:116