Changeset 42845
- Timestamp:
- May 9, 2025, 11:36:34 AM (14 months ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubMatchPSFs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMatchPSFs.c
r37080 r42845 155 155 } 156 156 psLogMsg("ppSub", PS_LOG_INFO, "Input FWHM: %f\nReference FWHM: %f\n", inFWHM, refFWHM); 157 158 # define SET_QUALITY_INSTEAD_OF_ERROR 159 // Bill Sweeney added the following block to cleanly handle bad FWHMs as a bad quality 160 // instead of failing with a fault, but left the code inactive. Activate it here 157 161 if (!isfinite(inFWHM) || !isfinite(refFWHM)) { 158 162 #ifdef SET_QUALITY_INSTEAD_OF_ERROR … … 458 462 ppSubDataQuality(data, error, PPSUB_FILES_ALL); 459 463 return true; 460 // XX} else if (error == PM_ERR_DATA) {461 // XXpsErrorStackPrint(stderr, "Unable to solve for the kernel to match images");462 // XXpsWarning("Failed to find PSF match kernel --- suspect bad data quality.");463 // XXppSubDataQuality(data, error, PPSUB_FILES_ALL);464 // XXreturn true;464 } else if (error == PM_ERR_DATA) { 465 psErrorStackPrint(stderr, "Unable to solve for the kernel to match images"); 466 psWarning("Failed to find PSF match kernel --- suspect bad data quality."); 467 ppSubDataQuality(data, error, PPSUB_FILES_ALL); 468 return true; 465 469 } else { 466 470 psError(PPSUB_ERR_DATA, false, "Unable to match images.");
Note:
See TracChangeset
for help on using the changeset viewer.
