- Timestamp:
- Jun 24, 2010, 2:59:09 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psModules
- Property svn:mergeinfo changed
/branches/czw_branch/20100519/psModules (added) merged: 28164,28304,28334,28338
- Property svn:mergeinfo changed
-
branches/pap/psModules/src/detrend/pmShutterCorrection.c
r27832 r28484 351 351 psStats *resStats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV); 352 352 if (!psVectorStats (rawStats, counts, NULL, NULL, 0)) { 353 psError(PS_ERR_UNKNOWN, false, "failure to measure stats");354 return NULL;353 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 354 return NULL; 355 355 } 356 356 if (!psVectorStats (resStats, resid, NULL, NULL, 0)) { 357 psError(PS_ERR_UNKNOWN, false, "failure to measure stats");358 return NULL;357 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 358 return NULL; 359 359 } 360 360 … … 794 794 795 795 if (!psThreadJobAddPending(job)) { 796 psFree(job);797 796 return false; 798 797 } 799 psFree(job);800 798 } else if (!pmShutterCorrectionApplyScan(image, mask, var, shutterImage, exptime, blank, 801 799 rowStart, rowStop)) { … … 1017 1015 1018 1016 if (corr) { 1019 psTrace("psModules.detrend", 5, "Shutter correction fit: scale: %f, offset: %f, offref: %f\n", corr->scale, corr->offset, corr->offref);1020 if (isfinite(corr->offref) && corr->valid) {1021 psTrace("psModules.detrend", 5, "Sample reference value: %f\n", corr->offref);1022 meanRef += corr->offref;1023 numGood++;1024 }1017 psTrace("psModules.detrend", 5, "Shutter correction fit: scale: %f, offset: %f, offref: %f\n", corr->scale, corr->offset, corr->offref); 1018 if (isfinite(corr->offref) && corr->valid) { 1019 psTrace("psModules.detrend", 5, "Sample reference value: %f\n", corr->offref); 1020 meanRef += corr->offref; 1021 numGood++; 1022 } 1025 1023 } else { 1026 psTrace("psModules.detrend", 5, "failed Shutter correction fit\n");1027 }1024 psTrace("psModules.detrend", 5, "failed Shutter correction fit\n"); 1025 } 1028 1026 1029 1027 psFree(corr);
Note:
See TracChangeset
for help on using the changeset viewer.
