Go to the documentation of this file.
9 double terrain_sample_position[][
MAX_PADDED][3],
11 uint8 *land_seamask_qaflag,
110 PGSt_integer numPoints=0;
114 char filefunc[] = __FILE__
", GEO_landsea_mask";
116 if (terrain_sample_position ==
NULL || sample_landsea ==
NULL ||
117 sample_flags ==
NULL)
119 sprintf(msgbuf,
"terrain_sample_position:%p sample_landsea:%p\n"
120 "sample_flags:%p\n", (
void*)terrain_sample_position,
121 (
void*)sample_landsea, (
void*)sample_flags);
126 else if (num_samples <0 || num_samples>
MAX_PADDED ||
129 sprintf(msgbuf,
"samples:%d detectors:%d", num_samples, num_detectors);
143 for (samp = 0; samp < num_samples; samp++)
145 for (det = 0; det < num_detectors; det++)
167 *land_seamask_qaflag = 1;
170 return PGS_S_SUCCESS;
175 PGSd_DEM_NEAREST_NEIGHBOR, land_seamask)) != PGS_FALSE)
177 *land_seamask_qaflag = 1;
182 *land_seamask_qaflag = 0;
184 for (samp = 0; samp < num_samples; samp++)
185 for (det = 0; det < num_detectors; det++)
193 if (land_seamask[numPoints] >= 0)
194 sample_landsea[det][samp] = (uint8)land_seamask[numPoints];
204 return PGS_S_SUCCESS;
real(single), dimension(:,:), allocatable longitude
#define MODIS_E_BAD_INPUT_ARG
const unsigned char NO_ELLIPSE_INTERSECT
real(single), dimension(:,:), allocatable latitude
PGSt_SMF_status GEO_landsea_mask(int num_samples, int num_detectors, double terrain_sample_position[][MAX_PADDED][3], uint8 sample_flags[][MAX_PADDED], uint8 *land_seamask_qaflag, uint8 sample_landsea[][MAX_PADDED])
PGSt_DEM_Tag DEM_resolutions[RESOLUTIONS]