Index: trunk/psModules/src/objects/pmSource.c
===================================================================
--- trunk/psModules/src/objects/pmSource.c	(revision 9730)
+++ trunk/psModules/src/objects/pmSource.c	(revision 9769)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-24 22:55:05 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-10-28 20:15:48 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -378,4 +378,7 @@
     bool status;
     psF32 PSF_SN_LIM = psMetadataLookupF32 (&status, metadata, "PSF_SN_LIM");
+    psF32 PSF_CLUMP_NSIGMA = psMetadataLookupF32 (&status, metadata, "PSF_CLUMP_NSIGMA");
+    if (!status)
+        PSF_CLUMP_NSIGMA = 1.5;
 
     // XXX allow clump size to be scaled relative to sigmas?
@@ -418,4 +421,5 @@
         // low S/N objects which are small are probably stellar
         // only set candidate defects if
+        // XXX these limits are quite arbitrary
         if ((sigX < 0.05) || (sigY < 0.05)) {
             tmpSrc->type = PM_SOURCE_TYPE_DEFECT;
@@ -440,5 +444,5 @@
         // PSF star (within 1.5 sigma of clump center, S/N > limit)
         psF32 radius = hypot ((sigX-clump.X)/clump.dX, (sigY-clump.Y)/clump.dY);
-        if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < 1.5)) {
+        if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < PSF_CLUMP_NSIGMA)) {
             tmpSrc->type = PM_SOURCE_TYPE_STAR;
             tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR;
