Changeset 3666 for trunk/stac/src/stacErrorImages.c
- Timestamp:
- Apr 5, 2005, 11:51:26 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacErrorImages.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacErrorImages.c
r3375 r3666 4 4 5 5 psArray *stacErrorImages(psArray *inputs, // Array of input images 6 stacConfig *config // Configuration details 6 float gain, // Gain, in e/ADU 7 float rn // Read noise, in e 7 8 ) 8 9 { 9 float invGain = 1.0/ config->gain;// Inverse square root of gain10 float rn = config->readnoise/config->gain;// Read noise in ADU10 float invGain = 1.0/gain; // Inverse square root of gain 11 rn /= gain; // Read noise in ADU 11 12 psArray *errors = psArrayAlloc(inputs->n); 12 13 … … 32 33 // Put image onto the array 33 34 errors->data[i] = error; 34 35 #ifdef TESTING36 // Write error image out to check37 char errName[MAXCHAR]; // Filename of error image38 sprintf(errName,"%s.err",config->inputs->data[i]);39 psFits *errorFile = psFitsAlloc(errName);40 if (!psFitsWriteImage(errorFile, NULL, error, 0, NULL)) {41 psErrorStackPrint(stderr, "Unable to write image: %s\n", errName);42 }43 psTrace("stac", 1, "Error image written to %s\n", errName);44 psFree(errorFile);45 #endif46 47 35 } 48 36
Note:
See TracChangeset
for help on using the changeset viewer.
