IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42410


Ignore:
Timestamp:
Mar 13, 2023, 10:07:18 AM (3 years ago)
Author:
eugene
Message:

handle failurs in two additional cases as bad quality (including the issue mentioned by Bill Sweeney in r36581 & that from EAM in r37080)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ppSub/src/ppSubMatchPSFs.c

    r37080 r42410  
    155155    }
    156156    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
    157161    if (!isfinite(inFWHM) || !isfinite(refFWHM)) {
    158162#ifdef SET_QUALITY_INSTEAD_OF_ERROR
     
    458462            ppSubDataQuality(data, error, PPSUB_FILES_ALL);
    459463            return true;
    460         // XX } else if (error == PM_ERR_DATA) {
    461         // XX     psErrorStackPrint(stderr, "Unable to solve for the kernel to match images");
    462         // XX     psWarning("Failed to find PSF match kernel --- suspect bad data quality.");
    463         // XX     ppSubDataQuality(data, error, PPSUB_FILES_ALL);
    464         // XX     return 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;
    465469        } else {
    466470            psError(PPSUB_ERR_DATA, false, "Unable to match images.");
Note: See TracChangeset for help on using the changeset viewer.