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

    r31156 r31435  
    3737
    3838    bool reverse = psMetadataLookupBool(NULL, config->arguments, "REVERSE"); // Reverse sense of subtraction?
    39 
     39   
    4040    bool mdok = false;                  // Status of MD lookup
    4141    pmReadout *minuend = NULL;          // Image that will be positive following subtraction
    4242    pmFPAfile *minuendFile = NULL;      // File for minuend image
    4343    pmFPAview *view = ppSubViewReadout(); // View to readout
    44     if (reverse) {
     44
     45    psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSUB_RECIPE); // Recipe for ppSub
     46    bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images.
     47
     48    if (!noConvolve) {
     49      printf("Using Convolved images because NOCONVOLVE is FALSE\n");
     50      if (reverse) {
    4551        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV");
    46         minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV");
    47     } else {
     52        minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV");
     53      } else {
    4854        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV");
    49         minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV");
     55        minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV");
     56      }
     57    }
     58    else {
     59      psWarning("Not using Convolved images because NOCONVOLVE  is TRUE\n");
     60      if (reverse) {
     61        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF");
     62        minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF");
     63      } else {
     64        minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT");
     65        minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT");
     66      }
    5067    }
    5168
Note: See TracChangeset for help on using the changeset viewer.