Changeset 42293 for trunk/psastro/src/psastroConvert.c
- Timestamp:
- Sep 27, 2022, 5:08:10 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroConvert.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroConvert.c
r41895 r42293 18 18 # define PHOT_SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_BLEND | PM_SOURCE_MODE_BADPSF | \ 19 19 PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_CR_LIMIT | PM_SOURCE_MODE_EXT_LIMIT | \ 20 PM_SOURCE_MODE_POOR ) // Mask to apply to sources for rejection20 PM_SOURCE_MODE_POOR ) // Mask to apply to sources for rejection 21 21 22 22 static psArray *chooseStars(psArray *inStars, char *listName, psArray *sources, psVector *index, int nMax, float iMagMin, float iMagMax, pmSourceMode skip); … … 193 193 int nBrightSkip = 0; 194 194 int nInfSkip = 0; 195 int nCTESkip = 0; 195 196 196 197 for (int i = 0; (i < inStars->n) && (j < rawStars->n); i++) { … … 217 218 continue; 218 219 } 220 //Also kick out stars that touch the CTE region 221 if (source->mode2 & PM_SOURCE_MODE2_ON_CTE) { 222 nCTESkip ++; 223 continue; 224 } 225 219 226 mMin = PS_MIN (mMin, source->psfMag); 220 227 mMax = PS_MAX (mMax, source->psfMag); … … 225 232 226 233 psLogMsg ("psastro", 4, "loaded %ld %ssources, using %ld of %ld good sources (inst mag: %f to %f)\n", sources->n, listName, rawStars->n, inStars->n, mMin, mMax); 227 psLogMsg ("psastro", 4, "skip reasons: mode: %d, faint: %d, bright: %d, inf: %d \n", nModeSkip, nFaintSkip, nBrightSkip, nInfSkip);234 psLogMsg ("psastro", 4, "skip reasons: mode: %d, faint: %d, bright: %d, inf: %d, CTE: %d\n", nModeSkip, nFaintSkip, nBrightSkip, nInfSkip,nCTESkip); 228 235 229 236 return rawStars; … … 509 516 float myPltScale = fabs(pltScale[chipID]); 510 517 518 psLogMsg ("psastro.correctKH", PS_LOG_INFO, "applying KH correction to %s (%d)\n", chipName, chipID); 519 511 520 // apply the correction to the detections 512 521 for (int i = 0; i < inStars->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
