Changeset 16800 for trunk/psastro/src/psastroConvert.c
- Timestamp:
- Mar 4, 2008, 12:24:29 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroConvert.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroConvert.c
r16525 r16800 79 79 float mMin = +100.0; 80 80 float mMax = -100.0; 81 int nModeSkip = 0; 82 int nFaintSkip = 0; 83 int nBrightSkip = 0; 84 int nInfSkip = 0; 81 85 82 86 for (int i = 0; (i < inStars->n) && (j < rawStars->n); i++) { … … 84 88 pmSource *source = sources->data[n]; 85 89 // 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 } 90 106 mMin = PS_MIN (mMin, source->psfMag); 91 107 mMax = PS_MAX (mMax, source->psfMag); … … 97 113 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.RAWSTARS", PS_DATA_ARRAY, "astrometry objects", rawStars); 98 114 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); 99 116 100 117 psFree (index);
Note:
See TracChangeset
for help on using the changeset viewer.
