Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/tvcontour.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/tvcontour.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/tvcontour.c
r5846 r7917 71 71 72 72 if ((argc != 4) && (argc != 5)) { 73 fprintf (stderr, "USAGE: contour <buffer> (overlay) level [Npix]\n");73 gprint (GP_ERR, "USAGE: contour <buffer> (overlay) level [Npix]\n"); 74 74 return (FALSE); 75 75 } … … 88 88 Ny = buf[0].header.Naxis[1]/Npix; 89 89 if (Npix != 1) { 90 fprintf (GetOutfile(), "rebin by a factor of %d (%d,%d)\n", Npix, Nx, Ny);90 gprint (GP_LOG, "rebin by a factor of %d (%d,%d)\n", Npix, Nx, Ny); 91 91 ALLOCATE (matrix, float, Nx*Ny); 92 92 bzero (matrix, Nx*Ny*sizeof(float)); … … 104 104 } 105 105 } else { 106 fprintf (stderr, "using scale of 1\n");106 gprint (GP_ERR, "using scale of 1\n"); 107 107 matrix = (float *)(buf[0].matrix.buffer); 108 108 } … … 119 119 d11 = (level - *v10); 120 120 for (j = 1; j < Ny; j++) { 121 if (!(j%10)) fprintf (stderr, ".");121 if (!(j%10)) gprint (GP_ERR, "."); 122 122 for (i = 1; i < Nx; i++, v00++, v01++, v10++, v11++) { 123 123 … … 281 281 282 282 if (Npix != 1) free (matrix); 283 fprintf (stderr, "\n");283 gprint (GP_ERR, "\n"); 284 284 return (TRUE); 285 285 }
Note:
See TracChangeset
for help on using the changeset viewer.
