IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33958


Ignore:
Timestamp:
May 30, 2012, 11:33:37 AM (14 years ago)
Author:
bills
Message:

Perform radial apetertures measurement on the convolved images even if
PSPHOT.STACK.USE.RAW since we don't psf match the raw inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotStackReadout.c

    r33917 r33958  
    317317    psphotExtendedSourceFits (config, view, STACK_SRC); // pass 1 (detections->allSources)
    318318
    319     // create source children for the OUT filerule (for radial aperture photometry)
    320     // (These are not just for radial aperture photomoetry. If they aren't defined we
    321     // get no sources output
     319    // create source children for the OUT filerule (for radial aperture photometry and output)
    322320    psArray *objectsOut = psphotSourceChildrenByObject (config, view, STACK_OUT, objects);
    323321    if (!objectsOut) {
     
    332330        // measure circular, radial apertures (objects sorted by S/N)
    333331        // this forces photometry on the undetected sources from other images
    334         psphotRadialApertures (config, view, STACK_SRC, 0); // XXX entry 0 == unmatched?
     332
     333        // NOTE: we always do the radial apertures analysis on the convolved image since
     334        // those are the ones that are psf matched and the source of STACK_OUT's pixels
     335        // XXX: Actually if PSPHOT.STACK.MATCH.PSF.SOURCE were set to RAW this wouldn't be true.
     336        // but in that case we don't get past the psf matching step because there is no
     337        // target psf for the RAW inputs
     338
     339        // If useRaw copy the sources to the convolved readout
     340        if (strcmp(STACK_SRC, STACK_CNV)) {
     341            if (!psphotCopySources (config, view, STACK_CNV, STACK_SRC)) {
     342                psError (PSPHOT_ERR_UNKNOWN, false, "failure in peak analysis");
     343                return psphotReadoutCleanup (config, view, STACK_SRC);
     344            }
     345        }
     346        psphotRadialApertures (config, view, STACK_CNV, 0); // XXX entry 0 == unmatched?
    335347        psMemDump("extmeas");
    336348
Note: See TracChangeset for help on using the changeset viewer.