Changeset 9769 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Oct 28, 2006, 10:15:48 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r9730 r9769 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-10-2 4 22:55:05$8 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-10-28 20:15:48 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 378 378 bool status; 379 379 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; 380 383 381 384 // XXX allow clump size to be scaled relative to sigmas? … … 418 421 // low S/N objects which are small are probably stellar 419 422 // only set candidate defects if 423 // XXX these limits are quite arbitrary 420 424 if ((sigX < 0.05) || (sigY < 0.05)) { 421 425 tmpSrc->type = PM_SOURCE_TYPE_DEFECT; … … 440 444 // PSF star (within 1.5 sigma of clump center, S/N > limit) 441 445 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)) { 443 447 tmpSrc->type = PM_SOURCE_TYPE_STAR; 444 448 tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR;
Note:
See TracChangeset
for help on using the changeset viewer.
