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/subpix.c

    r7680 r7917  
    2525
    2626  if (argc != 4) {
    27     fprintf (stderr, "USAGE: subpix ra dec radius\n");
     27    gprint (GP_ERR, "USAGE: subpix ra dec radius\n");
    2828    return (FALSE);
    2929  }
     
    3737  skylist = SkyListByRadius (sky, -1, Ra, Dec, Radius);
    3838  if (skylist[0].Nregions > 1) {
    39     fprintf (stderr, "warning, radius overlaps region boundary, not yet implemented\n");
     39    gprint (GP_ERR, "warning, radius overlaps region boundary, not yet implemented\n");
    4040  }
    4141
     
    8383  }
    8484  if (!Nentry) {
    85     fprintf (stderr, "no stars found\n");
     85    gprint (GP_ERR, "no stars found\n");
    8686    free (RA);
    8787    free (DEC);
     
    107107  Ra = RA[entry[Nmin]];
    108108  Dec = DEC[entry[Nmin]];
    109   fprintf (stderr, "finding subpix values for star @ %f %f\n", Ra, Dec);
     109  gprint (GP_ERR, "finding subpix values for star @ %f %f\n", Ra, Dec);
    110110
    111111  free (RA);
     
    147147        RD_to_XY (&X, &Y, Ra, Dec, &image[I].coords);
    148148        t = TimeValue (measure[j].t, TimeReference, TimeFormat);
    149         fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS);
     149        gprint (GP_LOG, "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS);
    150150      }
    151151    }
Note: See TracChangeset for help on using the changeset viewer.