Go to the documentation of this file.
30 printf(
"%s %s (%s %s)\n",
31 progname,
VERSION, __DATE__, __TIME__);
33 printf(
"\nUsage: %s geofile [threshold]\n", progname);
34 printf(
" geofile = geolocation filename\n");
35 printf(
" threshold = pass threshold in percent (default: 20)\n");
39 int main(
int argc,
char *argv[]) {
52 static char buffer[2 * 2048];
58 int32
start[3] = {0, 0, 0};
67 if (argc == 2) threshold = 20.0;
68 else threshold = atof(argv[2]);
70 sd_id_r = SDstart(argv[1], DFACC_RDONLY);
72 printf(
"%s not found.\n", argv[1]);
76 sds_index = SDnametoindex(sd_id_r,
"Longitude");
78 if (sds_index != -1) {
79 sds_id = SDselect(sd_id_r, sds_index);
83 for (
k = 1;
k <
rank;
k++) nelem *= dims[
k];
85 data = (
float *) calloc(nelem, DFKNTsize(
dtype));
91 n = (int32) rintf(100 * ((float32) nelem -
count) / nelem);
92 printf(
"Percent Longitude good: %d\n", n);
93 if (n < threshold)
status = -1;
97 sds_index = SDnametoindex(sd_id_r,
"Latitude");
99 if (sds_index != -1) {
100 sds_id = SDselect(sd_id_r, sds_index);
104 for (
k = 1;
k <
rank;
k++) nelem *= dims[
k];
106 data = (
float *) calloc(nelem, DFKNTsize(
dtype));
112 n = (int32) rintf(100 * ((float32) nelem -
count) / nelem);
113 printf(
"Percent Latitude good: %d\n", n);
114 if (n < threshold)
status = -1;
int main(int argc, char *argv[])
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Extra metadata that will be written to the HDF4 file l2prod rank
void usage(char *progname)