IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39607 for trunk


Ignore:
Timestamp:
Jun 23, 2016, 10:36:04 AM (10 years ago)
Author:
eugene
Message:

count match success and failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/mosaic_astrom.c

    r39457 r39607  
    4949  SortDISindex (DIStzero, DISentry, Ndis);
    5050
     51  int NfailMatch = 0;
     52  int NgoodMatch = 0;
     53
    5154  /* find all matched WRP images */
    5255  for (i = 0; i < Nimages; i++) {
     
    5760    j = getDISentry (images[i].tzero, images[i].tzero + (int) images[i].exptime, DIStzero, DISentry, Ndis);
    5861    if (j == -1) {
    59       fprintf (stderr, "WARNING: can't find matching mosaic \n");
     62      if (NfailMatch < 100) fprintf (stderr, "WARNING: can't find matching mosaic \n");
     63      NfailMatch ++;
    6064      continue;
    6165    }
     
    6367    images[i].parent = &images[j];
    6468    images[i].coords.mosaic = &images[j].coords;
     69    NgoodMatch ++;
    6570  }
     71
     72  fprintf (stderr, "matched chips for %d images, %d failed (%d total)\n", NgoodMatch, NfailMatch, (int) Nimages);
    6673
    6774  free (DISentry);
Note: See TracChangeset for help on using the changeset viewer.