IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40848


Ignore:
Timestamp:
Jul 26, 2019, 12:11:22 PM (7 years ago)
Author:
ippitc
Message:

merge change from trunk (do not fail on fully-masked chip)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20170121/psphot/src/psphotReadoutCleanup.c

    r37941 r40848  
    5555    // XXX where do we free these, in here (psMetadataRemove?)
    5656
     57    // XXX this is currently only set by psphotModelBackground / psphotModelBackgroundReadoutFileIndex / psphotModelBackgroundReadout
     58    // if the image background cannot be measured (no valid pixels)
    5759    int quality = psMetadataLookupS32 (&status, readout->analysis, "PSPHOT_QUALITY");
    5860    if (quality) {
     
    7476            return false;
    7577        }
     78    }
     79
     80    // Check to see if any sources were detected
     81    // This is not necessarily a quality error: e.g., ppSub
     82    if (0 && !psf && !sources) {
     83      psError(PSPHOT_ERR_DATA, false, "Unable to detect sources in the image");
     84      return false;
    7685    }
    7786
     
    115124
    116125    psFree (header);
     126    if (quality) return false;
     127
    117128    return true;
    118129}
Note: See TracChangeset for help on using the changeset viewer.