Changeset 7917 for trunk/Ohana/src/opihi/dvo/badimages.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/badimages.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/badimages.c
r7680 r7917 14 14 15 15 if (argc != 3) { 16 fprintf (stderr, "USAGE: badimages entry value\n");17 fprintf (stderr, " OR: badimages -image N\n");16 gprint (GP_ERR, "USAGE: badimages entry value\n"); 17 gprint (GP_ERR, " OR: badimages -image N\n"); 18 18 return (FALSE); 19 19 } … … 38 38 ptr = &image[entry].coords.crpix1; 39 39 for (i = 0; i < 22; i++) { 40 fprintf (GetOutfile(), "%2d: %g\n", i, ptr[i]);40 gprint (GP_LOG, "%2d: %g\n", i, ptr[i]); 41 41 } 42 42 value = image[entry].coords.pc1_1*image[entry].coords.pc2_2 + image[entry].coords.pc1_2*image[entry].coords.pc2_1; 43 fprintf (GetOutfile(), " x: %g\n", value);43 gprint (GP_LOG, " x: %g\n", value); 44 44 return (TRUE); 45 45 } … … 57 57 value = image[i].coords.pc1_1*image[i].coords.pc2_2 + image[i].coords.pc1_2*image[i].coords.pc2_1; 58 58 if ((value > big) || (value < small)) { 59 fprintf (GetOutfile(), "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, value);59 gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, value); 60 60 } 61 61 } … … 64 64 ptr = &image[i].coords.crpix1; 65 65 if ((ptr[entry] > big) || (ptr[entry] < small)) { 66 fprintf (GetOutfile(), "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, ptr[entry]);66 gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, ptr[entry]); 67 67 } 68 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
