IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2006, 10:15:48 AM (20 years ago)
Author:
magnier
Message:

added PSF_CLUMP_NSIGMA, default to 1.5

File:
1 edited

Legend:

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

    r9730 r9769  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-10-24 22:55:05 $
     8 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-10-28 20:15:48 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    378378    bool status;
    379379    psF32 PSF_SN_LIM = psMetadataLookupF32 (&status, metadata, "PSF_SN_LIM");
     380    psF32 PSF_CLUMP_NSIGMA = psMetadataLookupF32 (&status, metadata, "PSF_CLUMP_NSIGMA");
     381    if (!status)
     382        PSF_CLUMP_NSIGMA = 1.5;
    380383
    381384    // XXX allow clump size to be scaled relative to sigmas?
     
    418421        // low S/N objects which are small are probably stellar
    419422        // only set candidate defects if
     423        // XXX these limits are quite arbitrary
    420424        if ((sigX < 0.05) || (sigY < 0.05)) {
    421425            tmpSrc->type = PM_SOURCE_TYPE_DEFECT;
     
    440444        // PSF star (within 1.5 sigma of clump center, S/N > limit)
    441445        psF32 radius = hypot ((sigX-clump.X)/clump.dX, (sigY-clump.Y)/clump.dY);
    442         if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < 1.5)) {
     446        if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < PSF_CLUMP_NSIGMA)) {
    443447            tmpSrc->type = PM_SOURCE_TYPE_STAR;
    444448            tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR;
Note: See TracChangeset for help on using the changeset viewer.