Changeset 6887 for trunk/stac/src/stacCombine.c
- Timestamp:
- Apr 18, 2006, 12:20:45 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacCombine.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacCombine.c
r5745 r6887 103 103 psVector *deltas = psVectorAlloc(nImages, PS_TYPE_F32); // Will hold the errors in the statistics step 104 104 psVector *mask = psVectorAlloc(nImages, PS_TYPE_U8); // Will hold the mask in the statistics step 105 pixels->n = nImages; 106 deltas->n = nImages; 107 mask->n = nImages; 105 108 106 109 // Set up rejection masks … … 109 112 // Allocate the rejection masks, if required 110 113 *rejected = psArrayAlloc(nImages); 114 (*rejected)->n = nImages; 111 115 } else { 112 116 assert((*rejected)->n != nImages); … … 202 206 char chiName[MAXCHAR]; // Filename of chi^2 image 203 207 sprintf(chiName,"chi2_%d.fits",iteration); 204 psFits *chiFile = psFits Alloc(chiName);205 if (!psFitsWriteImage(chiFile, NULL, chi2 , 0 )) {208 psFits *chiFile = psFitsOpen(chiName, "w"); 209 if (!psFitsWriteImage(chiFile, NULL, chi2 , 0, NULL)) { 206 210 psErrorStackPrint(stderr, "Unable to write image: %s\n", chiName); 207 211 } 208 212 psTrace("stac.combine", 1, "Chi^2 image written to %s\n", chiName); 209 psF ree(chiFile);213 psFitsClose(chiFile); 210 214 psFree(chi2); 211 215 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
