Changeset 20355
- Timestamp:
- Oct 24, 2008, 11:21:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtractionIO.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionIO.c
r20049 r20355 39 39 #define NAME_NUMSTAMPS "NUMSTAMPS" // Number of good stamps 40 40 41 #define EXTNAME "SUBTRACTION_KERNEL" // Extension name 41 #define EXTNAME_KERNEL "SUBTRACTION_KERNEL" // Extension name for kernel 42 #define EXTNAME_IMAGE "SUBTRACTION_KERNEL_IMAGE" // Extension name for image 42 43 43 44 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 143 144 // CVS tags, used to identify the version of this file (in case incompatibilities are introduced) 144 145 psString cvsFile = psStringCopy("$RCSfile: pmSubtractionIO.c,v $"); 145 psString cvsRev = psStringCopy("$Revision: 1. 8$");146 psString cvsDate = psStringCopy("$Date: 2008-10- 10 23:54:33$");146 psString cvsRev = psStringCopy("$Revision: 1.9 $"); 147 psString cvsDate = psStringCopy("$Date: 2008-10-24 21:21:06 $"); 147 148 psStringSubstitute(&cvsFile, NULL, "RCSfile: "); 148 149 psStringSubstitute(&cvsRev, NULL, "Revision: "); … … 158 159 psFree(version); 159 160 160 if (!psFitsWriteTable(fits, header, rows, EXTNAME )) {161 if (!psFitsWriteTable(fits, header, rows, EXTNAME_KERNEL)) { 161 162 psError(PS_ERR_IO, false, "Unable to write subtraction kernel to FITS table."); 163 psFree(header); 164 psFree(rows); 165 return false; 166 } 167 168 psImage *image = psMetadataLookupPtr(NULL, ro->analysis, PM_SUBTRACTION_ANALYSIS_KERNEL_IMAGE); // Image 169 if (image && !psFitsWriteImage(fits, header, image, 0, EXTNAME_IMAGE)) { 170 psError(PS_ERR_IO, false, "Unable to write subtraction kernel image."); 162 171 psFree(header); 163 172 psFree(rows); … … 248 257 PS_ASSERT_FITS_NON_NULL(fits, false); 249 258 250 if (!psFitsMoveExtName(fits, EXTNAME )) {259 if (!psFitsMoveExtName(fits, EXTNAME_KERNEL)) { 251 260 psError(PS_ERR_IO, false, "Unable to move to subtraction kernel table."); 252 261 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
