Changeset 31156 for trunk/ppSub/src/ppSubDefineOutput.c
- Timestamp:
- Apr 4, 2011, 1:13:59 PM (15 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppSubDefineOutput.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub
- Property svn:ignore
-
old new 17 17 test 18 18 Doxyfile 19 a.out.dSYM
-
- Property svn:ignore
-
trunk/ppSub/src/ppSubDefineOutput.c
r28255 r31156 73 73 pmFPAfile *inFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file 74 74 75 // We should be using the GNU version of basename() which doesn't modify its argument, but just in case, 76 // we'll copy the string. 77 psString refName = psStringCopy(refFile->filename); // Filename of reference 78 const char *refBase = basename(refName); // Basename of reference 79 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.REFERENCE", 0, 80 "Subtraction reference", refBase); 81 psFree(refName); 82 psString inName = psStringCopy(inFile->filename); // Filename of input 83 const char *inBase = basename(inName); // Basename of input 84 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.INPUT", 0, 85 "Subtraction input", inBase); 86 psFree(inName); 75 // save the names of the input and reference image in the header 76 psString refBase = psStringFileBasename(refFile->origname); // Basename of reference 77 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.REFERENCE", 0, "Subtraction reference", refBase); 78 psFree(refBase); 79 80 psString inBase = psStringFileBasename(inFile->origname); // Basename of input 81 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.INPUT", 0, "Subtraction input", inBase); 82 psFree(inBase); 87 83 88 84 ppSubVersionHeader(outHDU->header);
Note:
See TracChangeset
for help on using the changeset viewer.
