IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16800


Ignore:
Timestamp:
Mar 4, 2008, 12:24:29 PM (18 years ago)
Author:
eugene
Message:

report number and reason for skipped detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroConvert.c

    r16525 r16800  
    7979    float mMin = +100.0;
    8080    float mMax = -100.0;
     81    int nModeSkip = 0;
     82    int nFaintSkip = 0;
     83    int nBrightSkip = 0;
     84    int nInfSkip = 0;
    8185
    8286    for (int i = 0; (i < inStars->n) && (j < rawStars->n); i++) {
     
    8488        pmSource *source = sources->data[n];
    8589        // XXX this needs to be flexible
    86         if (source->mode & skip) continue;
    87         if ((iMagMax != 0.0) && (source->psfMag > iMagMax)) continue;
    88         if ((iMagMin != 0.0) && (source->psfMag < iMagMin)) continue;
    89         if (!isfinite(source->psfMag)) continue;
     90        if (source->mode & skip) {
     91          nModeSkip ++;
     92          continue;
     93        }
     94        if ((iMagMax != 0.0) && (source->psfMag > iMagMax)) {
     95          nFaintSkip ++;
     96          continue;
     97        }
     98        if ((iMagMin != 0.0) && (source->psfMag < iMagMin)) {
     99          nBrightSkip ++;
     100          continue;
     101        }
     102        if (!isfinite(source->psfMag)) {
     103          nInfSkip ++;
     104          continue;
     105        }
    90106        mMin = PS_MIN (mMin, source->psfMag);
    91107        mMax = PS_MAX (mMax, source->psfMag);
     
    97113    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.RAWSTARS", PS_DATA_ARRAY, "astrometry objects", rawStars);
    98114    psLogMsg ("psastro", 4, "loaded %ld sources, using %ld of %ld good sources (inst mag: %f to %f)\n", sources->n, rawStars->n, inStars->n, mMin, mMax);
     115    psLogMsg ("psastro", 4, "skip reasons: mode: %d, faint: %d, bright: %d, inf: %d\n", nModeSkip, nFaintSkip, nBrightSkip, nInfSkip);
    99116
    100117    psFree (index);
Note: See TracChangeset for help on using the changeset viewer.