Lines Matching refs:th
205 DTEDHEADER th;
411 static void printImgInfo (DTEDHEADER *th, FMTOPT *opts,
422 sprintf (str, "\tLongitude of origin : %.8s\n", th->uhl.origin_long); OUT;
423 sprintf (str, "\tLatitude of origin : %.8s\n", th->uhl.origin_lat); OUT;
424 sprintf (str, "\tEast-West interval : %.4s\n", th->uhl.ew_interval); OUT;
425 sprintf (str, "\tNorth-South interval : %.4s\n", th->uhl.ns_interval); OUT;
426 sprintf (str, "\tVertical accuracy : %.4s\n", th->uhl.accuracy); OUT;
427 sprintf (str, "\tSecurity Code : %.3s\n", th->uhl.security); OUT;
428 sprintf (str, "\tDTED level : %.5s\n", th->dsi.level); OUT;
429 sprintf (str, "\tNumber of rows : %.4s\n", th->dsi.rows); OUT;
430 sprintf (str, "\tNumber of columns : %.4s\n", th->dsi.cols); OUT;
431 sprintf (str, "\tCell coverage : %.2s\n", th->dsi.cell_coverage); OUT;
441 static Boln readHeader (tkimg_MFile *handle, DTEDHEADER *th)
443 if (sizeof (DTEDHEADER) != tkimg_Read (handle, (char *)th, sizeof(DTEDHEADER))) {
446 if (strncmp ((char *)th->uhl.uhl_tag, "UHL", 3) != 0) {
455 static Boln writeHeader (tkimg_MFile *handle, DTEDHEADER *th)
462 static void initHeader (DTEDHEADER *th)
464 th->uhl.uhl_tag[0] = 'U';
465 th->uhl.uhl_tag[1] = 'H';
466 th->uhl.uhl_tag[2] = 'L';
815 DTEDHEADER th;
823 if (!readHeader (handle, &th)) {
826 sscanf (th.dsi.rows, "%4d", &nRows);
827 sscanf (th.dsi.cols, "%4d", &nCols);
831 *dtedHeaderPtr = th;
903 CommonMatch (interp, handle, format, &fileWidth, &fileHeight, &tf.th);
912 printImgInfo (&tf.th, &opts, filename, "Reading image:");