IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 15, 2011, 4:01:30 PM (15 years ago)
Author:
watersc1
Message:

Unconvolved diff code. Needs to be checked before merging into the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20110406/ppSub/src/ppSubThreshold.c

    r30619 r31302  
    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.