IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3645


Ignore:
Timestamp:
Apr 1, 2005, 3:58:43 PM (21 years ago)
Author:
eugene
Message:

added timing info

Location:
trunk/Ohana/src/addstar/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/addstar.c

    r3402 r3645  
    33int main (int argc, char **argv) {
    44
    5   int i, Nstars, Noverlap, Nregions, Nsubset;
     5  int i, Nstars, Noverlap, Nregions, Nsubset, Naverage, Nmeasure;
    66  Stars *stars, **subset;
    77  Image image, *overlap;
    88  GSCRegion *regions;
    99  Catalog catalog;
     10
     11  double dtime;
     12  struct timeval start, stop;
     13
     14  gettimeofday (&start, NULL);
    1015
    1116  SetSignals ();
     
    4045  }
    4146
     47  Naverage = Nmeasure = 0;
    4248  for (i = 0; i < Nregions; i++) {
    4349    if (!load_pt_catalog (&catalog, &regions[i])) continue;
     50
     51    Naverage += catalog.Naverage;
     52    Nmeasure += catalog.Nmeasure;
    4453
    4554    switch (MODE) {
     
    6574  if (CALIBRATE) { FindCalibration (&image); }
    6675  unlock_image_db (&image);
     76
     77  gettimeofday (&stop, NULL);
     78  dtime = DTIME (stop, start);
     79  fprintf (stderr, "SUCCESS: elapsed time %8.3f sec for %5d stars, %6d average, %7d measure\n", dtime, Nstars, Naverage, Nmeasure);
    6780  exit (0);
    6881}
  • trunk/Ohana/src/addstar/src/gimages.c

    r3416 r3645  
    9898  ALLOCATE (pimage, Image, NPIMAGE);
    9999
    100   fprintf (stderr, "find overlapping images\n");
    101100  /* run through image table, reading images in blocks */
    102101  for (Ntimage = 0; Ntimage < Nimage; Ntimage += ntimage) {
     
    108107
    109108      /* if any of these images are WRP images, need to find matching DIS */
    110       if (!FindMosaicForImage (timage, ntimage, i)) {
    111         fprintf (stderr, "!");
    112         continue;
    113       }
     109      if (!FindMosaicForImage (timage, ntimage, i)) continue;
    114110
    115111      addtolist = FALSE;
     
    142138    }
    143139  }
    144   fprintf (stderr, "done\n");
    145140
    146141  BuildChipMatch (pimage, npimage);
Note: See TracChangeset for help on using the changeset viewer.