Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/rebin.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/rebin.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/rebin.c
r7080 r7917 33 33 34 34 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"); 37 37 return (FALSE); 38 38 } … … 63 63 } 64 64 } 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); 66 66 67 67 Nx = in[0].header.Naxis[0]; … … 171 171 172 172 /* 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"); } 174 174 175 175 if (scale < 0) scale = 1.0 / fabs(scale);
Note:
See TracChangeset
for help on using the changeset viewer.
