- Timestamp:
- Aug 21, 2011, 10:44:17 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110710/psphot/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphotKronMasked.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/psphot/src
- Property svn:ignore
-
old new 22 22 psphotMakePSF 23 23 psphotStack 24 psphotModelTest
-
- Property svn:ignore
-
branches/eam_branches/ipp-20110710/psphot/src/psphotKronMasked.c
r31673 r32157 96 96 if (!source->moments) continue; 97 97 98 float windowRadius = RADIUS; 99 if (source->moments->KronFlux / source->moments->KronFluxErr > 10.0) { 100 windowRadius = PS_MAX (RADIUS, 10*source->moments->Mrf); 101 } 102 103 // re-allocate image, weight, mask arrays for each peak with box big enough to fit BIG_RADIUS 104 pmSourceRedefinePixels (source, readout, source->peak->x, source->peak->y, windowRadius + 2); 105 106 pmMoments psfMoments = *source->moments; 107 98 108 // replace object in image 99 109 if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) { … … 101 111 } 102 112 103 psphotKronMag (source, RADIUS, MIN_KRON_RADIUS, maskVal);113 psphotKronMag (source, windowRadius, MIN_KRON_RADIUS, maskVal); 104 114 105 115 // re-subtract the object, leave local sky … … 136 146 } 137 147 } 148 138 149 // psphotSaveImage (NULL, kronMask, "kronmask.fits"); 139 150 psLogMsg ("psphot.kron", PS_LOG_DETAIL, "measure masked kron magnitudes : %f sec for %ld objects\n", psTimerMark ("psphot.kron"), sources->n);
Note:
See TracChangeset
for help on using the changeset viewer.
