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

    r31156 r31435  
    4444
    4545    // Convolved input images
    46     pmReadout *inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout
    47     pmReadout *refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout
     46    psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PPSUB_RECIPE);
     47    bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE"); // Do not use convolved images.
     48
     49    pmReadout *inConv;
     50    if (noConvolve) {
     51      inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); // Input readout
     52    }
     53    else {
     54      inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout
     55    }
     56    pmReadout *refConv;
     57    if (noConvolve) {
     58      refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); // Reference readout
     59    }
     60    else {
     61      refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout
     62    }
    4863    psFree(view);
    4964
     
    6075        kernels = psMetadataLookupPtr(&mdok, analysis, PM_SUBTRACTION_ANALYSIS_KERNEL);
    6176    }
    62     if (!kernels) {
     77    if (!kernels && !noConvolve) {
    6378        psError(PPSUB_ERR_UNKNOWN, true, "Unable to find SUBTRACTION.KERNEL");
    6479        psFree(outRO);
     
    6681    }
    6782    psAssert (hdu, "unable to find HDU");
    68     psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0, "Subtraction kernel", kernels->description);
     83    if (!noConvolve) {
     84      psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0, "Subtraction kernel", kernels->description);
     85    }
    6986    outHDU->header = psMetadataCopy(outHDU->header, hdu->header);
    7087
Note: See TracChangeset for help on using the changeset viewer.