IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2011, 3:59:42 PM (15 years ago)
Author:
watersc1
Message:

LAP code, quick stacking code, and unconvolved diff code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadoutSubtract.c

    r30619 r31435  
    3131
    3232    bool reverse = psMetadataLookupBool(&mdok, config->arguments, "REVERSE"); // Reverse sense of subtraction?
     33    bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images.
    3334    bool addPair = psMetadataLookupBool(&mdok, recipe, "ADD.NOT.SUBTRACT"); // add instead of subtracting
    3435
     
    3839    pmReadout *minuend = NULL;          // Positive image
    3940    pmReadout *subtrahend = NULL;       // Negative image
    40     if (reverse) {
     41    if (!noConvolve) {
     42      printf("Using Convolved images because NOCONVOLVE is FALSE\n");
     43      if (reverse) {
    4144        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV");
    4245        subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV");
    43     } else {
     46      } else {
    4447        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV");
    4548        subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV");
     49      }
     50    }
     51    else {
     52      psWarning("Not using Convolved images because NOCONVOLVE  is TRUE\n");
     53      if (reverse) {
     54        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF");
     55        subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT");
     56      } else {
     57        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT");
     58        subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF");
     59      }
    4660    }
    4761
Note: See TracChangeset for help on using the changeset viewer.