IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2013, 1:35:54 PM (13 years ago)
Author:
eugene
Message:

add a number of additional flag bits, esp for model fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotPetrosianStats.c

    r36198 r36327  
    2121    if (!profile->binSB) {
    2222        psLogMsg ("psphot", PS_LOG_DETAIL, "no petrosian profile, skipping source %f, %f", source->peak->xf, source->peak->yf);
     23        source->mode2 |= PM_SOURCE_MODE2_PETRO_NO_PROFILE;
    2324        return true;
    2425    }
     
    118119                petRadius    = InterpolateValues     (1.0, 0.0, petRatio->data.F32[nOut], refRadius->data.F32[nOut], PETROSIAN_RATIO);
    119120                petRadiusErr = InterpolateValuesErrX (1.0, 0.0, petRatio->data.F32[nOut], refRadius->data.F32[nOut], PETROSIAN_RATIO, 0.0, petRatioErr->data.F32[nOut]);
     121                source->mode2 |= PM_SOURCE_MODE2_PETRO_RATIO_ZEROBIN;
    120122            } else {
    121123              // petRadius    = InterpolateValues     (petRatio->data.F32[nOut-1], refRadius->data.F32[nOut-1], petRatio->data.F32[nOut], refRadius->data.F32[nOut], PETROSIAN_RATIO);
    122124              if (nOut > 1) {
    123                 petRadius    = InterpolateValuesQuadratic (&petRatio->data.F32[nOut-2],   &refRadius->data.F32[nOut-2],   PETROSIAN_RATIO);
     125                petRadius    = InterpolateValuesQuadratic (&petRatio->data.F32[nOut-2], &refRadius->data.F32[nOut-2],   PETROSIAN_RATIO);
    124126              } else {
    125127                petRadius    = InterpolateValuesQuadratic (&petRatio->data.F32[nOut-3], &refRadius->data.F32[nOut-3], PETROSIAN_RATIO);
     
    158160            fprintf (stderr, "nan pet radius\n");
    159161        }
     162        source->mode2 |= PM_SOURCE_MODE2_PETRO_INSIG_RATIO;
    160163    }
    161164
     
    190193    bool found50 = false;
    191194    bool found90 = false;
     195
    192196    // XXX use bisection to do this faster:
    193197    for (int i = 0; !(found50 && found90) && i < refRadius->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.