IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 10, 2012, 3:44:12 PM (14 years ago)
Author:
bills
Message:

If one of the inputs to psphotStack fails the deconvolution limit cut don't
fault the run, instead proceed with the analysis but mark that input to
be skipped in the Radial Aperture section. This was a bit more complicated
than expected

File:
1 edited

Legend:

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

    r32868 r34136  
    8787    }
    8888
    89     // copy the header data from Src to Out
    90     // pmHDU *hduSrc = pmHDUFromReadout(readoutSrc);
    91     // psAssert (hduSrc, "input missing hdu?");
    92 
    93 
    9489    // set NAN pixels to 'SAT'
    9590    psImageMaskType maskSat = pmConfigMaskGet("SAT", config);
     
    116111    // save the output fwhm values in the readout->analysis.  we may have / will have multiple output PSF sizes,
    117112    // so we save this in a vector.  if the vector is not yet defined, create it
     113    // Skip this if the readout deconvolution fraction was over the limit.
    118114    // NOTE: fwhmValues as defined here has 1 + nMatched PSF : 0 == unmatched
    119115    psVector *fwhmValues = psVectorAllocEmpty(10, PS_TYPE_F32);
    120116    psVectorAppend(fwhmValues, NAN); // XXX this corresponds to the unmatched image set
    121     for (int i = 0; i < options->targetSeeing->n; i++) {
    122         psVectorAppend(fwhmValues, options->targetSeeing->data.F32[i]);
     117
     118    bool overLimit = psMetadataLookupBool(NULL, readoutOut->analysis, "DECONV.OVERLIMIT");
     119    if (!overLimit) {
     120        for (int i = 0; i < options->targetSeeing->n; i++) {
     121            psVectorAppend(fwhmValues, options->targetSeeing->data.F32[i]);
     122        }
    123123    }
    124124    psMetadataAddVector(readoutSrc->analysis, PS_LIST_TAIL, "STACK.PSF.FWHM.VALUES", PS_META_REPLACE, "PSF sizes", fwhmValues);
Note: See TracChangeset for help on using the changeset viewer.