Go to the documentation of this file.
9 double terrain_sample_position[][
MAX_PADDED][3],
10 int const sample_number,
11 int const num_detectors,
110 char filefunc[] = __FILE__
", GEO_validate_earth_location";
114 if((sample_flags ==
NULL) || (terrain_sample_position ==
NULL) ||
116 (sample_number < 0) || (sample_number >=
MAX_PADDED))
118 sprintf(msgbuf,
"sample_flags: %p,terrain_sample_position: %p, "
119 "num_detectors: %d, sample_number = %d", (
void*)sample_flags,
120 (
void*)terrain_sample_position, num_detectors, sample_number);
127 for (det = 0; det < num_detectors; det++) {
132 for (det = 0; det < num_detectors; det++) {
133 if( (sample_flags[det][sample_number] &
135 ( (terrain_sample_position[det][sample_number][
HT_IDX] <
137 (terrain_sample_position[det][sample_number][
HT_IDX] >
144 return PGS_S_SUCCESS;
const double MAX_TERRAIN_HEIGHT
PGSt_SMF_status GEO_validate_earth_location(int const mirr_impulse_flag, double terrain_sample_position[][MAX_PADDED][3], int const sample_number, int const num_detectors, unsigned char sample_flags[][MAX_PADDED])
#define MODIS_E_BAD_INPUT_ARG
const unsigned char NO_ELLIPSE_INTERSECT
const unsigned char BAD_TERRAIN
const double MIN_TERRAIN_HEIGHT
const unsigned char INVALID_INPUT_DATA
int mirr_impulse_flag[MAX_SCAN_NUMBER]