Changeset 19230 for trunk/psModules/src/imcombine/pmSubtractionIO.c
- Timestamp:
- Aug 26, 2008, 4:54:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtractionIO.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionIO.c
r19189 r19230 1 1 #include <stdio.h> 2 2 #include <pslib.h> 3 #include <string s.h>3 #include <string.h> 4 4 5 5 #include "pmHDU.h" … … 33 33 #define NAME_SOL2 "SOLUTION_2" // Solution for convolving image 2 34 34 35 #define FALLBACK_EXTNAME "SUBTRACTION_KERNEL" // Fallback extension name 35 36 36 37 // Generate an extension name for the subtraction kernel 38 // In the case that there is no chip/cell (the readout is orphaned), the fallback extension name is used 37 39 static psString subtractionKernelExtname(const pmReadout *ro // Readout containing kernel 38 40 ) … … 61 63 62 64 if (!extname) { 63 extname = psStringCopy( "SUBTRACTION_KERNEL");65 extname = psStringCopy(FALLBACK_EXTNAME); 64 66 } 65 67 … … 165 167 // CVS tags, used to identify the version of this file (in case incompatibilities are introduced) 166 168 psString cvsFile = psStringCopy("$RCSfile: pmSubtractionIO.c,v $"); 167 psString cvsRev = psStringCopy("$Revision: 1. 2$");168 psString cvsDate = psStringCopy("$Date: 2008-08-2 5 22:14:04 $");169 psString cvsRev = psStringCopy("$Revision: 1.3 $"); 170 psString cvsDate = psStringCopy("$Date: 2008-08-27 02:54:44 $"); 169 171 psStringSubstitute(&cvsFile, NULL, "RCSfile: "); 170 172 psStringSubstitute(&cvsRev, NULL, "Revision: "); … … 276 278 psString extname = subtractionKernelExtname(ro); // Extension name 277 279 if (!psFitsMoveExtName(fits, extname)) { 278 psError(PS_ERR_IO, false, "Unable to move to subtraction kernel table."); 279 psFree(extname); 280 return false; 280 if (strcmp(extname, FALLBACK_EXTNAME) != 0) { 281 psErrorClear(); 282 if (!psFitsMoveExtName(fits, FALLBACK_EXTNAME)) { 283 psError(PS_ERR_IO, false, "Unable to move to subtraction kernel table."); 284 psFree(extname); 285 return false; 286 } 287 } else { 288 psError(PS_ERR_IO, false, "Unable to move to subtraction kernel table."); 289 psFree(extname); 290 return false; 291 } 281 292 } 282 293 psFree(extname);
Note:
See TracChangeset
for help on using the changeset viewer.
