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

    r7680 r7917  
    2222
    2323  if (argc != 3) {
    24     fprintf (stderr, "USAGE: imphot tzero trange [-g buffer]\n");
     24    gprint (GP_ERR, "USAGE: imphot tzero trange [-g buffer]\n");
    2525    return (FALSE);
    2626  }
     
    4343  /* load image(s) in time range given */
    4444  if (!str_to_time (argv[1], &tzero)) {
    45     fprintf (stderr, "syntax error\n");
     45    gprint (GP_ERR, "syntax error\n");
    4646    return (FALSE);
    4747  }
    4848  if (!str_to_dtime (argv[2], &trange)) {
    49     fprintf (stderr, "syntax error\n");
     49    gprint (GP_ERR, "syntax error\n");
    5050    return (FALSE);
    5151  }   
    52   fprintf (stderr, "searching in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
     52  gprint (GP_ERR, "searching in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
    5353 
    5454  if ((image = LoadImages (&Nimage)) == NULL) return (FALSE);
     
    5656
    5757  if ((Nsubset > 1) && GreyScale) {
    58     fprintf (stderr, "more than one image selected, making GreyScale of first only\n");
     58    gprint (GP_ERR, "more than one image selected, making GreyScale of first only\n");
    5959  }
    6060
     
    7474    switch (image[i].order) {
    7575    case 0:
    76       fprintf (stderr, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS);
     76      gprint (GP_ERR, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS);
    7777      break;
    7878    case 1:
    79       fprintf (stderr, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My);
     79      gprint (GP_ERR, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My);
    8080      break;
    8181    case 2:
    82       fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);
     82      gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);
    8383      break;
    8484    case 3:
    85       fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
     85      gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
    8686               image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy);
    8787      break;
    8888    case 4:
    89       fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
     89      gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
    9090               image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy,
    9191               image[i].Mxxxx, image[i].Mxxxy, image[i].Mxxyy, image[i].Mxyyy, image[i].Myyyy);
Note: See TracChangeset for help on using the changeset viewer.