IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2006, 12:05:51 PM (20 years ago)
Author:
rhl
Message:

Use PSF_CLUMP_SN_LIM to limit objects put into splane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r10075 r10382  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-11-18 07:31:44 $
     8 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-12-01 22:05:51 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    217217    PS_ASSERT_PTR_NON_NULL(recipe, emptyClump);
    218218
     219    bool status = true;
     220    float PSF_CLUMP_SN_LIM = psMetadataLookupF32 (&status, recipe, "PSF_CLUMP_SN_LIM");
     221    if (!status) {
     222        PSF_CLUMP_SN_LIM = 0;
     223    }
     224
    219225    // find the sigmaX, sigmaY clump
    220226    {
     
    236242
    237243        // construct a sigma-plane image
    238         // psImageAlloc does zero the data
    239244        splane = psImageAlloc (SX_MAX/SCALE, SY_MAX/SCALE, PS_TYPE_F32);
    240         for (int i = 0; i < splane->numRows; i++)
    241         {
    242             memset (splane->data.F32[i], 0, splane->numCols*sizeof(PS_TYPE_F32));
    243         }
     245        psImageInit(splane, 0);  // psImageAlloc doesn't zero the data
    244246
    245247        // place the sources in the sigma-plane image (ignore 0,0 values?)
     
    251253            }
    252254            if (tmpSrc->moments == NULL) {
     255                continue;
     256            }
     257
     258            if (tmpSrc->moments->SN < PSF_CLUMP_SN_LIM) {
    253259                continue;
    254260            }
Note: See TracChangeset for help on using the changeset viewer.