IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2010, 11:22:25 AM (16 years ago)
Author:
eugene
Message:

large update merging in changes for Ohana to support large files

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/opihi/dvo/badimages.c

    r7917 r27435  
    88int badimages (int argc, char **argv) {
    99 
    10   int i, Nimage, entry, First, Cross;
     10  off_t i, Nimage;
     11  int entry, First, Cross;
    1112  float *ptr;
    1213  double nominal, big, small, value;
     
    3839    ptr = &image[entry].coords.crpix1;
    3940    for (i = 0; i < 22; i++) {
    40       gprint (GP_LOG, "%2d: %g\n", i, ptr[i]);
     41      gprint (GP_LOG, "%2lld: %g\n", (long long) i, ptr[i]);
    4142    }
    4243    value = image[entry].coords.pc1_1*image[entry].coords.pc2_2 + image[entry].coords.pc1_2*image[entry].coords.pc2_1;
     
    5758      value = image[i].coords.pc1_1*image[i].coords.pc2_2 + image[i].coords.pc1_2*image[i].coords.pc2_1;
    5859      if ((value > big) || (value < small)) {
    59         gprint (GP_LOG, "%5d %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);
    6061      }
    6162    }
     
    6465      ptr = &image[i].coords.crpix1;
    6566      if ((ptr[entry] > big) || (ptr[entry] < small)) {
    66         gprint (GP_LOG, "%5d %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]);
    6768      }
    6869    }
Note: See TracChangeset for help on using the changeset viewer.