IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 14, 2010, 10:19:12 AM (16 years ago)
Author:
eugene
Message:

pmSourceMoments now takes a mask value and correctly ANDs the image mask against that (needed to handle SUSPECT as opposed to BAD pixels); pmPeaks returns an empty, but non NON peak array if no peaks are found (this is a valid result)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/objects/pmSource.c

    r26523 r26594  
    409409
    410410        // if we failed to find a valid peak, return the empty clump (failure signal)
    411         if (peaks == NULL)
     411        if (peaks == NULL) {
     412            psError(PS_ERR_UNKNOWN, false, "failure in peak analysis for PSF clump.\n");
     413            return emptyClump;
     414        }
     415
     416        if (peaks->n == 0)
    412417        {
    413418            psLogMsg ("psphot", 3, "failed to find a peak in the PSF clump image\n");
Note: See TracChangeset for help on using the changeset viewer.