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/cmd.astro/coords.c

    r3460 r7917  
    4343  if (!strcmp(&coords.ctype[4], "-WRP")) {
    4444    if (MOSAIC == NULL) {
    45       fprintf (stderr, "must supply mosaic for WRP coords\n");
     45      gprint (GP_ERR, "must supply mosaic for WRP coords\n");
    4646      return (FALSE);
    4747    }
     
    5353  if (mode == SKY) {
    5454    XY_to_RD (&R, &D, X, Y, &coords);
    55     fprintf (GetOutfile(), "%10.6f %10.6f\n", R, D);
     55    gprint (GP_LOG, "%10.6f %10.6f\n", R, D);
    5656    set_variable ("RA", R);
    5757    set_variable ("DEC", D);
     
    6161  if (mode == PIXEL) {
    6262    RD_to_XY (&X, &Y, R, D, &coords);
    63     fprintf (GetOutfile(), "%7.2f %7.2f\n", X, Y);
     63    gprint (GP_LOG, "%7.2f %7.2f\n", X, Y);
    6464    set_variable ("Xc", X);
    6565    set_variable ("Yc", Y);
     
    6969
    7070 syntax:
    71   fprintf (stderr, "USAGE: coords [buffer] (-c R D) / (-p X Y)\n");
    72   fprintf (stderr, "only one of -p or -c can be used\n");
     71  gprint (GP_ERR, "USAGE: coords [buffer] (-c R D) / (-p X Y)\n");
     72  gprint (GP_ERR, "only one of -p or -c can be used\n");
    7373 escape:
    7474  if (MOSAIC != NULL) free (MOSAIC);
Note: See TracChangeset for help on using the changeset viewer.