IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 10:08:44 AM (15 years ago)
Author:
eugene
Message:

merging updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/ppSub/src/ppSubThreshold.c

    r30619 r31441  
    9595
    9696    // Input images
    97     pmReadout *in = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input image
     97    bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE");
     98
     99    pmReadout *in;
     100    if (noConvolve) {
     101      in = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); // Input image
     102    }
     103    else {
     104      in = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input image
     105    }
    98106    if (!in) {
    99107        psError(PPSUB_ERR_UNKNOWN, false, "Unable to find readout.");
     
    102110    }
    103111
    104     pmReadout *ref = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference image
     112    pmReadout *ref;
     113    if (noConvolve) {
     114      ref = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); // Reference image
     115    }
     116    else {
     117      ref = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference image
     118    }
    105119    if (!ref) {
    106120        psError(PPSUB_ERR_UNKNOWN, false, "Unable to find readout.");
Note: See TracChangeset for help on using the changeset viewer.