OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
GEO_validation.h
Go to the documentation of this file.
1 #ifndef GEO_VALIDATION_H
2 #define GEO_VALIDATION_H
3 
4 /*
5 !C-INC*************************************************************************
6 
7 !Description: the prototypes for the validation functions in the Level-1A
8  geolocation software
9 
10 !Input Parameters: N/A
11 
12 !Output Parameters: N/A
13 
14 !Revision History:
15  * $Log: GEO_validation.h,v $
16  * Revision 6.3 2010/04/23 18:23:00 kuyper
17  * Removed obsolete functions.
18  *
19  * Revision 6.2 2009/03/27 20:40:31 kuyper
20  * Removed pointless leading dimensions of "array" parameters.
21  *
22  * Revision 6.1 2009/03/18 21:02:20 kuyper
23  * Removed MAX_DETECTORS, changed MAX_SCAN_SAMPLE to PADDED_SAMPLES.
24  * Changed return type for GEO_validate_derived_products() and
25  * GEO_validate_earth_location().
26  * Changed parameter list for GEO_validate_derived_products().
27  *
28  * James Kuyper Jr. James.R.Kuyper@nasa.gov
29  *
30  * Revision 2.6 2000/03/22 16:42:17 lma
31  * delete qa_metadata arg in GEO_validate_earth_location definition
32  *
33  * Revision 2.5 2000/01/28 16:14:35 lma
34  * modified BAD_DATA from -1 to 1
35  *
36  * Revision 2.4 1999/04/09 15:18:20 kuyper
37  * Removed duplicate Log keyword, and the duplicate revision history created by
38  * it.
39  *
40  * Revision 2.3 1999/03/12 17:48:37 kuyper
41  * Capitalized Prolog Sections
42  *
43  * Revision 2.2 1997/11/07 16:10:22 kuyper
44  * Changed pixel_flags to unsigned char, to match gflags.
45  *
46  * Revision 2.1 1997/10/21 18:15:47 kuyper
47  * Returned from ClearCase
48  *
49  Revised /main/GEO_V2_DEV/2 on 30-Sep-97.00:35:12
50  by Jeffrey Blanchette (jjb@modis-xl.gsfc.nasa.gov)
51  "Revised GEO_validate_derived_products's prototype."
52 
53  * Revision 1.5.1.1 1997/07/18 22:40:58 kuyper
54  * Merged in out-of-sequence changes.
55  *
56  * Revision 1.5 1997/07/18 21:58:00 kuyper
57  * Baselined Version 1
58  *
59  * Revision 1.3 1997/04/22 18:29:22 fhliang
60  * commented unused argument (LL.67-69).
61  *
62  * Revision 1.2 1997/04/11 19:37:34 fhliang
63  * added log header
64  *
65  * Revision 1.1 1997/03/26 19:12:15 fhliang
66  *Initial revision of SDST delivery of GEO_validation.h
67  *
68  6/20/95
69  Frederick S. Patt (patt@modis-xl.gsfc.nasa.gov)
70  Finished coding
71 
72 
73 !Team-unique Header:
74  This software is developed by the MODIS Science Data Support
75  Team for the National Aeronautics and Space Administration,
76  Goddard Space Flight Center, under contract NAS5-32373.
77 
78 !END***************************************************************************
79 */
80 
81 #define BAD_DATA 1
82 #define GOOD_DATA 0
83 #include "GEO_parameters.h"
84 
85 /* function prototype */
86 
87 int GEO_abs_limit_check ( /* Check samples against absolute limits */
88  double data_samples[],
89  int const number_of_samples,
90  double data_limits[],
91  int sample_flags[]
92  );
93 
94 int GEO_del_limit_check ( /* Check samples against delta limits */
95  double data_samples[],
96  int const number_of_samples,
97  double const delta_limit,
98  int sample_flags[]
99  );
100 
101 int GEO_find_next_flag ( /* Find next unflagged sample */
102  int sample_flags[],
103  int const number_of_samples,
104  int const start_sample
105  );
106 
107 PGSt_SMF_status GEO_validate_derived_products (
108  /* Validate derived geolocation values */
109  int const sample_number,
110  int const num_detectors,
111  double const range_scale,
112  double frame_to_sensor[][MAX_FRAMES][3],
113  uint8 frame_flags[][MAX_FRAMES]
114 );
115 
116 PGSt_SMF_status GEO_validate_earth_location ( /* Validate geolocation values */
117  int const mirr_impulse_flag,
118  double terrain_sample_position[][MAX_PADDED][3],
119  int const frame_number,
120  int const num_detectors,
121  unsigned char sample_flags[][MAX_PADDED]
122 );
123 
124 #endif
125 
PGSt_SMF_status GEO_validate_derived_products(int const sample_number, int const num_detectors, double const range_scale, double frame_to_sensor[][MAX_FRAMES][3], uint8 frame_flags[][MAX_FRAMES])
#define MAX_FRAMES
Definition: GEO_geo.h:79
PGSt_SMF_status GEO_validate_earth_location(int const mirr_impulse_flag, double terrain_sample_position[][MAX_PADDED][3], int const frame_number, int const num_detectors, unsigned char sample_flags[][MAX_PADDED])
#define MAX_PADDED
Definition: GEO_geo.h:84
int GEO_abs_limit_check(double data_samples[], int const number_of_samples, double data_limits[], int sample_flags[])
int GEO_find_next_flag(int sample_flags[], int const number_of_samples, int const start_sample)
int GEO_del_limit_check(double data_samples[], int const number_of_samples, double const delta_limit, int sample_flags[])
int mirr_impulse_flag[MAX_SCAN_NUMBER]