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.data/rebin.c

    r7080 r7917  
    3333
    3434  if (argc != 4) {
    35     fprintf (stderr, "USAGE: rebin <from> <to> scale \n");
    36     fprintf (stderr, "  negative integer scale expands image\n");
     35    gprint (GP_ERR, "USAGE: rebin <from> <to> scale \n");
     36    gprint (GP_ERR, "  negative integer scale expands image\n");
    3737    return (FALSE);
    3838  }
     
    6363    }     
    6464  }
    65   if (VERBOSE) fprintf (GetOutfile(), "rebin %s to %s (%d,%d to %d,%d)\n", argv[1], argv[2], in[0].header.Naxis[0], in[0].header.Naxis[1], nx, ny);
     65  if (VERBOSE) gprint (GP_LOG, "rebin %s to %s (%d,%d to %d,%d)\n", argv[1], argv[2], in[0].header.Naxis[0], in[0].header.Naxis[1], nx, ny);
    6666
    6767  Nx = in[0].header.Naxis[0];
     
    171171   
    172172    /* normalization is broken.  repair please */
    173     if (Normalize) { fprintf (stderr, "normalize not enabled for fractional scaling\n"); }
     173    if (Normalize) { gprint (GP_ERR, "normalize not enabled for fractional scaling\n"); }
    174174
    175175    if (scale < 0) scale = 1.0 / fabs(scale);
Note: See TracChangeset for help on using the changeset viewer.