IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2011, 1:12:39 PM (15 years ago)
Author:
eugene
Message:

use the smoothed image for footprint culling; use a more stringent culling for saturated stars; more tweaks to get sat stars to be fitted; various updates to psphotStack; unify psphotImageLoop varients; be a bit careful about number of stars in a PSF clump

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotRadialAperturesByObject.c

    r30624 r31154  
    4343    assert (maskVal);
    4444
    45     // XXX temporary user-supplied systematic sky noise measurement (derive from background model)
    46     float skynoise = psMetadataLookupF32 (&status, recipe, "SKY.NOISE");
    47 
    4845    // S/N limit to perform full non-linear fits
    4946    float SN_LIM = psMetadataLookupF32 (&status, recipe, "RADIAL_APERTURES_SN_LIM");
     
    6360   
    6461    // source analysis is done in S/N order (brightest first)
    65     objects = psArraySort (objects, pmPhotObjSortBySN);
     62    objects = psArraySort (objects, pmPhotObjSortByFlux);
    6663
    6764    // generate look-up arrays for readouts
     
    109106            // limit selection to some SN limit
    110107            assert (source->peak); // how can a source not have a peak?
    111             if (source->peak->SN < SN_LIM) continue;
     108            if (sqrt(source->peak->detValue) < SN_LIM) continue;
    112109
    113110            int index = source->imageID;
     
    147144
    148145            // force source image to be a bit larger...
    149             // float radius = source->peak->xf - source->pixels->col0;
    150             // radius = PS_MAX (radius, source->peak->yf - source->pixels->row0);
    151             // radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0);
    152             // radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0);
    153146            pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, outerRadius + 2);
    154147
    155             if (!psphotRadialApertureSource (source, recipe, skynoise, maskVal, radMax, nMatchedPSF)) {
     148            if (!psphotRadialApertureSource (source, recipe, maskVal, radMax, nMatchedPSF)) {
    156149                psTrace ("psphot", 5, "failed to extract radial profile for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My);
    157150            } else {
    158151                source->mode |= PM_SOURCE_MODE_RADIAL_FLUX;
     152                if (source->parent) {
     153                    source->parent->mode |= PM_SOURCE_MODE_RADIAL_FLUX;
     154                }
    159155            }
    160156
Note: See TracChangeset for help on using the changeset viewer.