IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30512


Ignore:
Timestamp:
Feb 8, 2011, 8:42:20 AM (15 years ago)
Author:
eugene
Message:

track the mean number of measurements per object per image (nlink)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/FitChip.c

    r30509 r30512  
    121121  GetScatterRawRef(&dLsigFull, &dMsigFull, &dRsigFull, &NstatFull, raw, ref, Nmatch, SIGMA_LIM);
    122122  GetScatterRawRef(&dLsig, &dMsig, &dRsig, &Nstat, raw, ref, Nmatch, IMFIT_SYS_SIGMA_LIM);
     123
     124  int Nm = 0;
     125  int Ns = 0;
     126  for (i = 0; i < Nmatch; i++) {
     127    if (raw[i].mask) continue;
     128    Nm += raw[i].Nmeas;
     129    Ns++;
     130  }
     131  image[0].nLinkAstrom = (Nm / Ns);
     132
    123133  if (VERBOSE) fprintf (stderr, "fit sigma: %f (%f, %f) : full: %f (%f, %f), scatter limit: %f (%d full, %d bright, %d fit, %d all) (%d %d %d %d %d)\n", dRsig, dLsig, dMsig, dRsigFull, dLsigFull, dMsigFull, dRmax, NstatFull, Nstat, fit[0].Npts, Nmatch, nMask1, nMask2, nMask3, nMask4, nMask5);
    124134
Note: See TracChangeset for help on using the changeset viewer.