IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/badimages.c

    r7680 r7917  
    1414
    1515  if (argc != 3) {
    16     fprintf (stderr, "USAGE: badimages entry value\n");
    17     fprintf (stderr, "   OR: badimages -image N\n");
     16    gprint (GP_ERR, "USAGE: badimages entry value\n");
     17    gprint (GP_ERR, "   OR: badimages -image N\n");
    1818    return (FALSE);
    1919  }
     
    3838    ptr = &image[entry].coords.crpix1;
    3939    for (i = 0; i < 22; i++) {
    40       fprintf (GetOutfile(), "%2d: %g\n", i, ptr[i]);
     40      gprint (GP_LOG, "%2d: %g\n", i, ptr[i]);
    4141    }
    4242    value = image[entry].coords.pc1_1*image[entry].coords.pc2_2 + image[entry].coords.pc1_2*image[entry].coords.pc2_1;
    43     fprintf (GetOutfile(), " x: %g\n", value);
     43    gprint (GP_LOG, " x: %g\n", value);
    4444    return (TRUE);
    4545  }
     
    5757      value = image[i].coords.pc1_1*image[i].coords.pc2_2 + image[i].coords.pc1_2*image[i].coords.pc2_1;
    5858      if ((value > big) || (value < small)) {
    59         fprintf (GetOutfile(), "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, value);
     59        gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, value);
    6060      }
    6161    }
     
    6464      ptr = &image[i].coords.crpix1;
    6565      if ((ptr[entry] > big) || (ptr[entry] < small)) {
    66         fprintf (GetOutfile(), "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, ptr[entry]);
     66        gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, ptr[entry]);
    6767      }
    6868    }
Note: See TracChangeset for help on using the changeset viewer.