IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2009, 2:26:32 PM (17 years ago)
Author:
eugene
Message:

change radius for extended sources to use footprint; clean up some of the visualizations; plug some leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotPetrosianAnalysis.c

    r25275 r25433  
    1212    // XXX temporary user-supplied systematic sky noise measurement (derive from background model)
    1313    float skynoise = psMetadataLookupF32 (&status, recipe, "SKY.NOISE");
     14
     15# if (0)
     16    // if backModel or backStdev are missing, the values of sky and/or skyErr will be set to NAN
     17    // XXX use this to set skynoise
     18    pmReadout *backModel = psphotSelectBackground (config, view);
     19    pmReadout *backStdev = psphotSelectBackgroundStdev (config, view);
     20# endif
    1421
    1522    // S/N limit to perform full non-linear fits
     
    3340        if (source->type == PM_SOURCE_TYPE_DEFECT) continue;
    3441        if (source->type == PM_SOURCE_TYPE_SATURATED) continue;
     42        if (source->mode & PM_SOURCE_MODE_DEFECT) continue;
     43        if (source->mode & PM_SOURCE_MODE_SATSTAR) continue;
     44        if (!(source->mode & PM_SOURCE_MODE_EXT_LIMIT)) continue;
    3545
    3646        // limit selection to some SN limit
    3747        assert (source->peak); // how can a source not have a peak?
    3848        if (source->peak->SN < SN_LIM) continue;
    39         if (source->extNsigma < 10.0) continue; // XXX this should not be hardwired
    4049
    4150        // limit selection by analysis region
     
    5059        }
    5160
    52         psphotPetrosianProfile (source, skynoise);
     61        psphotPetrosianProfile (readout, source, skynoise);
     62
     63        pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
     64        source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED;
    5365    }
     66
     67    psphotVisualShowResidualImage (readout);
    5468
    5569    // pause and wait for user input:
Note: See TracChangeset for help on using the changeset viewer.