Changeset 27435 for trunk/Ohana/src/opihi/dvo/badimages.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/dvo/badimages.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/20091201/Ohana merged eligible /branches/eam_branches/largefiles.20100314/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/dvo/badimages.c
r7917 r27435 8 8 int badimages (int argc, char **argv) { 9 9 10 int i, Nimage, entry, First, Cross; 10 off_t i, Nimage; 11 int entry, First, Cross; 11 12 float *ptr; 12 13 double nominal, big, small, value; … … 38 39 ptr = &image[entry].coords.crpix1; 39 40 for (i = 0; i < 22; i++) { 40 gprint (GP_LOG, "%2 d: %g\n",i, ptr[i]);41 gprint (GP_LOG, "%2lld: %g\n", (long long) i, ptr[i]); 41 42 } 42 43 value = image[entry].coords.pc1_1*image[entry].coords.pc2_2 + image[entry].coords.pc1_2*image[entry].coords.pc2_1; … … 57 58 value = image[i].coords.pc1_1*image[i].coords.pc2_2 + image[i].coords.pc1_2*image[i].coords.pc2_1; 58 59 if ((value > big) || (value < small)) { 59 gprint (GP_LOG, "%5 d %s: %d %g\n",i, image[i].name, image[i].tzero, value);60 gprint (GP_LOG, "%5lld %s: %d %g\n", (long long) i, image[i].name, image[i].tzero, value); 60 61 } 61 62 } … … 64 65 ptr = &image[i].coords.crpix1; 65 66 if ((ptr[entry] > big) || (ptr[entry] < small)) { 66 gprint (GP_LOG, "%5 d %s: %d %g\n",i, image[i].name, image[i].tzero, ptr[entry]);67 gprint (GP_LOG, "%5lld %s: %d %g\n", (long long) i, image[i].name, image[i].tzero, ptr[entry]); 67 68 } 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.
