Changeset 3666 for trunk/stac/src/stacCombine.c
- Timestamp:
- Apr 5, 2005, 11:51:26 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacCombine.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacCombine.c
r3610 r3666 62 62 int nReject, // Number of rejection iterations 63 63 psImage *region, // Region to combine 64 stacConfig *config // Configuration 64 psVector *saturated, // Saturation limits for each image 65 psVector *bad, // Bad pixel limits for each image 66 float reject // Rejection (k-sigma) 65 67 ) 66 68 { … … 68 70 int numRows = ((psImage*)images->data[0])->numRows; // Image size 69 71 int numCols = ((psImage*)images->data[0])->numCols; // Image size 70 psVector *saturated = config->saturated;// Saturation limits71 psVector *bad = config->bad; // Bad pixel limits72 float reject = config->reject; // Rejection (k-sigma)73 72 74 73 // Check dimensions for consistency … … 188 187 189 188 #ifdef TESTING 190 // Write rejection images out to check191 if (nReject > 0) {192 for (int i = 0; i < nImages; i++) {193 char rejName[MAXCHAR]; // Filename of rejection image194 sprintf(rejName,"%s.shiftrej",config->inputs->data[i]);195 196 psFits *rejFile = psFitsAlloc(rejName);197 if (!psFitsWriteImage(rejFile, NULL, (*rejected)->data[i], 0, NULL)) {198 psErrorStackPrint(stderr, "Unable to write image: %s\n", rejName);199 }200 psTrace("stac", 1, "Rejection image written to %s\n", rejName);201 psFree(rejFile);202 }203 }204 189 // Write chi^2 image 205 190 iteration++; … … 210 195 psErrorStackPrint(stderr, "Unable to write image: %s\n", chiName); 211 196 } 212 psTrace("stac ", 1, "Chi^2 image written to %s\n", chiName);197 psTrace("stac.combine", 1, "Chi^2 image written to %s\n", chiName); 213 198 psFree(chiFile); 214 199 psFree(chi2); 215 200 #endif 216 217 201 218 202 // Clean up
Note:
See TracChangeset
for help on using the changeset viewer.
