IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2023, 11:57:40 AM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. add code for PatternDeadCells, fix organization of DetrendPattern, handle psphotModelBackground failure

Location:
trunk/ppImage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage

  • trunk/ppImage/src/ppImageReplaceBackground.c

    r41382 r42382  
    8181    if (!modelFile || !modelRO) {
    8282        if (!psphotModelBackgroundReadoutFileIndex(config, &roView, "PPIMAGE.CHIP", 0)) {
    83             psError(PS_ERR_UNKNOWN, false, "Unable to model background");
    84             return false;
     83            int lastError = psErrorCodeLast();
     84            if (lastError == PSPHOT_ERR_DATA) {
     85              // a data error in psphotModelBackground* means an empty or bad image: skip background subtraction
     86              psErrorStackPrint(stderr, "Unable to model background");
     87              psErrorClear();
     88              return true;
     89            } else {
     90              psError(PS_ERR_UNKNOWN, false, "Unable to model background");
     91              return false;
     92            }
    8593        }
    8694        // the model file should now at least be defined
Note: See TracChangeset for help on using the changeset viewer.