IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2009, 6:25:39 PM (17 years ago)
Author:
Paul Price
Message:

Still moving stuff around to support 'inverse' mode. Need to define separate output files for the sources. Still doesn't compile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppSub/src/ppSubDefineOutput.c

    r23704 r23711  
    2929    pmCell *outCell = pmFPAfileThisCell(config->files, view, name); // Output cell
    3030    pmFPA *outFPA = outCell->parent->parent; // Output FPA
    31     pmHDU *outHDU = outFPA->hdu; // Output HDU
     31    pmHDU *outHDU = outFPA->hdu;        // Output HDU
    3232    if (!outHDU->header) {
    3333        outHDU->header = psMetadataAlloc();
    3434    }
    3535
     36    // The output readout may already be present if we read in the convolution kernel
    3637    pmReadout *outRO = NULL;            // Output readout
    3738    if (outCell->readouts && outCell->readouts->n > 0 && outCell->readouts->data[0]) {
     
    4142    }
    4243
    43     // convolved input images
     44    // Convolved input images
    4445    pmReadout *inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout
    4546    pmReadout *refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout
     
    6364                     kernels->description);
    6465
     66    // Add additional data to the header
     67    pmFPAfile *refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF"); // Reference file
     68    pmFPAfile *inFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file
     69    psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.REFERENCE", 0,
     70                     "Subtraction reference", refFile->filename);
     71    psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.INPUT", 0,
     72                     "Subtraction input", inFile->filename);
     73    ppSubVersionHeader(outHDU->header);
     74
     75
    6576    outRO->analysis = psMetadataCopy(outRO->analysis, analysis);
    6677
Note: See TracChangeset for help on using the changeset viewer.