IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:50:18 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120627/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psphot

  • branches/eam_branches/ipp-20120627/psphot/src

  • branches/eam_branches/ipp-20120627/psphot/src/psphotStackMatchPSFsNext.c

    r32996 r34247  
    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.