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/psphotStackMatchPSFsNext.c

    r32996 r34136  
    77    int nRadialEntries = 0;
    88
    9     // find the currently selected readout
    10     pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, 0); // File of interest
    11     psAssert (file, "missing file?");
     9    // find the numer of fwhmValues in the first non-skipped input
     10    int num = psphotFileruleCount(config, filerule);
     11    for (int i=0; i<num; i++) {
     12        pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, i); // File of interest
     13        psAssert (file, "missing file?");
    1214   
    13     pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
    14     psAssert (readout, "missing readout?");
    15    
    16     bool status = false;
    17     psVector *fwhmValues = psMetadataLookupVector(&status, readout->analysis, "STACK.PSF.FWHM.VALUES");
    18     if (!fwhmValues) {
    19         return 1;
     15        pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
     16        psAssert (readout, "missing readout?");
     17        bool status = false;
     18        if (!psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) {
     19            psVector *fwhmValues = psMetadataLookupVector(&status, readout->analysis, "STACK.PSF.FWHM.VALUES");
     20            if (fwhmValues) {
     21                nRadialEntries = fwhmValues->n;
     22            } else {
     23                nRadialEntries = 1;
     24            }
     25            break;
     26        }
    2027    }
    21    
    22     nRadialEntries = fwhmValues->n;
    2328    return nRadialEntries;
    2429}
     
    6065    pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
    6166    psAssert (readout, "missing readout?");
     67
     68    if (psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) {
     69        psLogMsg("psphot", PS_LOG_INFO, "skipping smooth %d to next psf", index);
     70        return true;
     71    }
    6272
    6373    psLogMsg("psphot", PS_LOG_INFO, "smooth %d to next psf", index);
Note: See TracChangeset for help on using the changeset viewer.