Changeset 6772
- Timestamp:
- Apr 4, 2006, 12:09:04 PM (20 years ago)
- Location:
- trunk/pois/src
- Files:
-
- 2 edited
-
pois.c (modified) (7 diffs)
-
poisCalculateDeviations.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pois/src/pois.c
r5742 r6772 65 65 header = psFitsReadHeader(NULL, reference); 66 66 } 67 psImage *refImage = psFitsReadImage( NULL,reference, imageRegion, 0);67 psImage *refImage = psFitsReadImage(reference, imageRegion, 0); 68 68 if (refImage == NULL) { 69 69 psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->refFile); … … 84 84 header = psFitsReadHeader(NULL, input); 85 85 } 86 psImage *inImage = psFitsReadImage( NULL,input, imageRegion, 0);86 psImage *inImage = psFitsReadImage(input, imageRegion, 0); 87 87 if (inImage == NULL) { 88 88 psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->inFile); … … 128 128 // Write the mask out 129 129 psFits *maskFile = psFitsOpen("mask.fits", "w"); 130 if (!psFitsWriteImage(maskFile, NULL, mask, 0 )) {130 if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) { 131 131 psErrorStackPrint(stderr, "Unable to write mask: mask.fits\n"); 132 132 } … … 196 196 psImage *kernelImage = poisExtractKernel(solution, kernelBasisFunctions, 0.0, 0.0, config); 197 197 psFits *kernelFile = psFitsOpen(kernelName, "w"); 198 if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0 )) {198 if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0, NULL)) { 199 199 psErrorStackPrint(stderr, "Unable to write kernel: %s\n", kernelName); 200 200 } … … 242 242 snprintf(convName, MAXCHAR, "%s.conv", config->outFile); 243 243 psFits *convFile = psFitsOpen(convName, "w"); 244 if (!psFitsWriteImage(convFile, NULL, convImage, 0 )) {244 if (!psFitsWriteImage(convFile, NULL, convImage, 0, NULL)) { 245 245 psErrorStackPrint(stderr, "Unable to write convolved image: %s\n", convName); 246 246 } … … 304 304 sprintf(maskName, "%s.mask", config->outFile); 305 305 psFits *maskFile = psFitsOpen(maskName, "w"); 306 if (!psFitsWriteImage(maskFile, NULL, mask, 0 )) {306 if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) { 307 307 psErrorStackPrint(stderr, "Unable to write image: %s\n", maskName); 308 308 } … … 318 318 319 319 psFits *subFile = psFitsOpen(config->outFile, "w"); 320 if (!psFitsWriteImage(subFile, header, subImage, 0 )) {320 if (!psFitsWriteImage(subFile, header, subImage, 0, NULL)) { 321 321 psErrorStackPrint(stderr, "Unable to write subtracted image: %s\n", config->outFile); 322 322 } -
trunk/pois/src/poisCalculateDeviations.c
r6452 r6772 79 79 snprintf(stampName, MAXCHAR, "stamp%d.fits", s); 80 80 psFits *stampFile = psFitsOpen(stampName, "w"); 81 if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0 )) {81 if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0, NULL)) { 82 82 psErrorStackPrint(stderr, "Unable to write stamp: %s\n", stampName); 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.
