60 if (path_number < 1 || path_number > 233)
64 if (start_block > end_block)
67 if (start_block < 1 || end_block > 180)
72 0.0, 0.0, &min_som_x, &min_som_y);
80 for (block = start_block+1; block <= end_block; block++) {
83 0.0, 0.0, &ulc_som_x, &ulc_som_y);
90 printf(
" %f %f\n", ulc_som_x, min_som_x);
91 printf(
"%f %f %f %f\n", ulc_som_y, lrc_som_y, min_som_y, max_som_y);
92 printf(
" %f %f\n", lrc_som_x, max_som_x);
95 if (ulc_som_x < min_som_x) min_som_x = ulc_som_x;
96 if (lrc_som_x > max_som_x) max_som_x = lrc_som_x;
97 if (ulc_som_y < min_som_y) min_som_y = ulc_som_y;
98 if (lrc_som_y > max_som_y) max_som_y = lrc_som_y;
103 double ulclon, ulclat, lrclon, lrclat;
108 printf(
" %f %f\n", ulclat, min_som_x);
109 printf(
"%f %f %f %f\n", ulclon, lrclon, min_som_y, max_som_y);
110 printf(
" %f %f\n", lrclat, max_som_x);
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkSomXYToLatLon(int path, double som_x, double som_y, double *lat_dd, double *lon_dd)
Convert SOM X, SOM Y to decimal degrees latitude and longitude.
MTKt_status MtkSetRegionByPathBlockRange(int path_number, int start_block, int end_block, MTKt_Region *region)
Select region by path and block range.
MTKt_status MtkBlsToSomXY(int path, int resolution_meters, int block, float line, float sample, double *som_x, double *som_y)
Convert from Block, Line, Sample, to SOM Coordinates.
#define MTK_ERR_COND_JUMP(code)