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

    r5846 r7917  
    1818
    1919  if (argc != 9) {
    20     fprintf (stderr, "USAGE: outline x y dx dy dxy Io dIo (buffer)\n");
     20    gprint (GP_ERR, "USAGE: outline x y dx dy dxy Io dIo (buffer)\n");
    2121    return (FALSE);
    2222  }
     
    7878
    7979  if (Npts == 0) {
    80     fprintf (stderr, "no valid points in box, try again\n");
     80    gprint (GP_ERR, "no valid points in box, try again\n");
    8181    free (xs);
    8282    free (ys);
     
    8787  plot_outline ();
    8888  chisq = outline_chi (Io, in);
    89   fprintf (stderr, "starting chisq: %f for %d pts\n", chisq, Npts);
     89  gprint (GP_ERR, "starting chisq: %f for %d pts\n", chisq, Npts);
    9090
    9191# if (1)
     
    139139    }
    140140
    141     fprintf (stderr, "try: %d  %f   ", j, chisq);
     141    gprint (GP_ERR, "try: %d  %f   ", j, chisq);
    142142    for (i = 0; i < 5; i++) {
    143       fprintf (stderr, "%f ", par[i]);
    144     }
    145     fprintf (stderr, "\n          ");
     143      gprint (GP_ERR, "%f ", par[i]);
     144    }
     145    gprint (GP_ERR, "\n          ");
    146146    for (i = 0; i < 5; i++) {
    147       fprintf (stderr, "%f ", dpar[i]);
    148     }
    149     fprintf (stderr, "\n");
     147      gprint (GP_ERR, "%f ", dpar[i]);
     148    }
     149    gprint (GP_ERR, "\n");
    150150    dchi -= chisq;
    151151
Note: See TracChangeset for help on using the changeset viewer.