Changeset 23711 for branches/pap/ppSub/src/ppSubDefineOutput.c
- Timestamp:
- Apr 3, 2009, 6:25:39 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppSub/src/ppSubDefineOutput.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppSub/src/ppSubDefineOutput.c
r23704 r23711 29 29 pmCell *outCell = pmFPAfileThisCell(config->files, view, name); // Output cell 30 30 pmFPA *outFPA = outCell->parent->parent; // Output FPA 31 pmHDU *outHDU = outFPA->hdu; // Output HDU31 pmHDU *outHDU = outFPA->hdu; // Output HDU 32 32 if (!outHDU->header) { 33 33 outHDU->header = psMetadataAlloc(); 34 34 } 35 35 36 // The output readout may already be present if we read in the convolution kernel 36 37 pmReadout *outRO = NULL; // Output readout 37 38 if (outCell->readouts && outCell->readouts->n > 0 && outCell->readouts->data[0]) { … … 41 42 } 42 43 43 // convolved input images44 // Convolved input images 44 45 pmReadout *inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout 45 46 pmReadout *refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout … … 63 64 kernels->description); 64 65 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 65 76 outRO->analysis = psMetadataCopy(outRO->analysis, analysis); 66 77
Note:
See TracChangeset
for help on using the changeset viewer.
