Go to the documentation of this file.
6 #define MAX_ANGLE (PGS_PI/2.0)
11 int const num_detectors,
127 if ((terrain_sample_position ==
NULL) || (pixel_flags ==
NULL)
128 || (bounding_coords ==
NULL) || (num_detectors < 0)
132 "GEO_get_bounding_coords, GEO_get_bounding_coords.c():");
136 for(detector = 0; detector < num_detectors; detector++){
137 for( frame = 0; frame < num_frames; frame++){
142 if ( terrain_sample_position[detector][frame][
LAT_IDX] >
145 terrain_sample_position[detector][frame][
LAT_IDX];
147 if( terrain_sample_position[detector][frame][
LAT_IDX] <
150 terrain_sample_position[detector][frame][
LAT_IDX];
152 if( terrain_sample_position[detector][frame][
LON_IDX] > 0.0 ){
154 if( terrain_sample_position[detector][frame][
LON_IDX] >
157 terrain_sample_position[detector][frame][
LON_IDX];
159 if( terrain_sample_position[detector][frame][
LON_IDX] <
162 terrain_sample_position[detector][frame][
LON_IDX];
166 if( terrain_sample_position[detector][frame][
LON_IDX] >
169 terrain_sample_position[detector][frame][
LON_IDX];
171 if( terrain_sample_position[detector][frame][
LON_IDX] <
174 terrain_sample_position[detector][frame][
LON_IDX];
int GEO_get_bounding_coords(double terrain_sample_position[MAX_DETECTORS][MAX_SCAN_SAMPLE][3], unsigned char pixel_flags[MAX_DETECTORS][MAX_SCAN_SAMPLE], int const num_detectors, int const num_frames, GEO_bcoord_struct *const bounding_coords)
#define MODIS_E_BAD_INPUT_ARG
const unsigned char NO_ELLIPSE_INTERSECT
const int MAX_SCAN_SAMPLE
const unsigned char INVALID_INPUT_DATA