IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 27, 2022, 5:08:10 PM (4 years ago)
Author:
tdeboer
Message:

adding CTE detection functionality and new CTE source flag

File:
1 edited

Legend:

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

    r41895 r42293  
    1818# define PHOT_SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_BLEND | PM_SOURCE_MODE_BADPSF | \
    1919                           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 rejection
     20                           PM_SOURCE_MODE_POOR ) // Mask to apply to sources for rejection
    2121
    2222static psArray *chooseStars(psArray *inStars, char *listName, psArray *sources, psVector *index, int nMax, float iMagMin, float iMagMax, pmSourceMode skip);
     
    193193    int nBrightSkip = 0;
    194194    int nInfSkip = 0;
     195    int nCTESkip = 0;
    195196
    196197    for (int i = 0; (i < inStars->n) && (j < rawStars->n); i++) {
     
    217218          continue;
    218219        }
     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       
    219226        mMin = PS_MIN (mMin, source->psfMag);
    220227        mMax = PS_MAX (mMax, source->psfMag);
     
    225232
    226233    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);
    228235
    229236    return rawStars;
     
    509516  float myPltScale = fabs(pltScale[chipID]);
    510517
     518  psLogMsg ("psastro.correctKH", PS_LOG_INFO, "applying KH correction to %s (%d)\n", chipName, chipID);
     519
    511520  // apply the correction to the detections
    512521  for (int i = 0; i < inStars->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.