Changeset 6125 for trunk/ppImage/src/ppImageDetrendCell.c
- Timestamp:
- Jan 21, 2006, 12:29:48 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendCell.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendCell.c
r6114 r6125 6 6 pmReadout *ppDetrendSelectFirst(pmCell *cell, char *name, bool doThis) 7 7 { 8 9 8 if (!doThis) { 10 9 return NULL; … … 34 33 #endif 35 34 36 // Dark time for dark image37 float darkTime = 1.0;38 if (options->doDark) {39 darkTime = psMetadataLookupF32(NULL, detrend->dark->concepts, "CELL.DARKTIME");40 if (darkTime <= 0.0) {41 psErrorStackPrint(stderr, "DARKTIME for dark image (%f) is non-positive.\n", darkTime);42 exit(EXIT_FAILURE);43 }44 }45 46 35 for (int k = 0; k < detrend->input->readouts->n; k++) { 47 36 … … 50 39 // Mask bad pixels 51 40 if (options->doMask) { 52 ppDetrendMask (detrend->input, input, mask);41 ppDetrendMask(detrend->input, input, mask); 53 42 } 54 43 55 44 // Non-linearity correction 56 45 if (options->doNonLin) { 57 ppDetrendNonLinear (detrend->input, input, options);46 ppDetrendNonLinear(detrend->input, input, options); 58 47 } 59 48
Note:
See TracChangeset
for help on using the changeset viewer.
