Changeset 5743 for trunk/stac/src/stacCombine.c
- Timestamp:
- Dec 7, 2005, 2:57:14 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacCombine.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacCombine.c
r3673 r5743 10 10 float stacCombineMean(psVector *values, // Values for which to take the mean 11 11 psVector *errors, // Errors in the values 12 psVector *masks // Masks for the values, 0 = don't use, 1= use12 psVector *masks // Masks for the values, 1 = don't use, 0 = use 13 13 ) 14 14 { … … 149 149 } 150 150 } 151 151 152 152 float average = stacCombineMean(pixels, deltas, mask); // Combined value 153 154 // We set the value BEFORE the rejection iteration because not all pixels that we reject 155 // here will be rejected in the final cut. 156 (*combined)->data.F32[y][x] = average; 153 157 154 158 #ifdef TESTING … … 188 192 } 189 193 190 (*combined)->data.F32[y][x] = average;191 192 194 } // Pixels of interest 193 195 … … 201 203 sprintf(chiName,"chi2_%d.fits",iteration); 202 204 psFits *chiFile = psFitsAlloc(chiName); 203 if (!psFitsWriteImage(chiFile, NULL, chi2 , 0 , NULL)) {205 if (!psFitsWriteImage(chiFile, NULL, chi2 , 0)) { 204 206 psErrorStackPrint(stderr, "Unable to write image: %s\n", chiName); 205 207 }
Note:
See TracChangeset
for help on using the changeset viewer.
