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

    r7680 r7917  
    2020    remove_argument (N, &argc, argv);
    2121    if (!str_to_time (argv[N], &tzero)) {
    22       fprintf (stderr, "syntax error\n");
     22      gprint (GP_ERR, "syntax error\n");
    2323      return (FALSE);
    2424    }
    2525    remove_argument (N, &argc, argv);
    2626    if (!str_to_dtime (argv[N], &trange)) {
    27       fprintf (stderr, "syntax error\n");
     27      gprint (GP_ERR, "syntax error\n");
    2828      return (FALSE);
    2929    }
    3030    remove_argument (N, &argc, argv);
    3131    TimeSelect = TRUE;
    32     fprintf (stderr, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
     32    gprint (GP_ERR, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
    3333  }
    3434
     
    4646    PhotcodeValue = GetPhotcodebyName (argv[N]);
    4747    if (PhotcodeValue == NULL) {
    48       fprintf (stderr, "photcode not found in photcode table\n");
     48      gprint (GP_ERR, "photcode not found in photcode table\n");
    4949      return (FALSE);
    5050    }
     
    6262
    6363  if (argc != 1) {
    64     fprintf (stderr, "USAGE: image [-time start range] [-region] [-name string]\n");
     64    gprint (GP_ERR, "USAGE: image [-time start range] [-region] [-name string]\n");
    6565    return (FALSE);
    6666  }
     
    8585    t = TimeValue (image[i].tzero, TimeReference, TimeFormat);
    8686    XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    87     fprintf (GetOutfile(), "%3d %s %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
     87    gprint (GP_LOG, "%3d %s %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
    8888             i, image[i].name, r, d, t, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS);
    8989  }
Note: See TracChangeset for help on using the changeset viewer.