Changeset 6905 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Apr 19, 2006, 10:29:57 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r6872 r6905 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-04-1 7 18:01:05$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-04-19 20:29:57 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 #include "pmHDU.h" 20 20 #include "pmFPA.h" 21 #include "pmMaskBadPixels.h" 21 22 #include "pmPeaks.h" 22 23 #include "pmMoments.h" … … 164 165 if (!status) 165 166 SY_MAX = 10.0; 167 psF32 AR_MAX = psMetadataLookupF32 (&status, metadata, "MOMENTS_AR_MAX"); 168 if (!status) 169 AR_MAX = 3.0; 170 psF32 AR_MIN = 1.0 / AR_MAX; 166 171 167 172 // construct a sigma-plane image … … 185 190 186 191 // Sx,Sy are limited at 0. a peak at 0,0 is artificial 187 if ((fabs(tmpSrc->moments->Sx) < FLT_EPSILON) && (fabs(tmpSrc->moments->Sy) < FLT_EPSILON)) { 192 if (fabs(tmpSrc->moments->Sx) < 0.05) { 193 continue; 194 } 195 if (fabs(tmpSrc->moments->Sy) < 0.05) { 196 continue; 197 } 198 if ((tmpSrc->moments->Sx / tmpSrc->moments->Sy) > AR_MAX) { 199 continue; 200 } 201 if ((tmpSrc->moments->Sx / tmpSrc->moments->Sy) < AR_MIN) { 188 202 continue; 189 203 } … … 341 355 // inner = psRegionForSquare (tmpSrc->peak->x - tmpSrc->mask->col0, tmpSrc->peak->y - tmpSrc->mask->row0, 2); 342 356 inner = psRegionForSquare (tmpSrc->peak->x, tmpSrc->peak->y, 2); 343 int Nsatpix = psImageCountPixelMask (tmpSrc->mask, inner, PM_ SOURCE_MASK_SATURATED);357 int Nsatpix = psImageCountPixelMask (tmpSrc->mask, inner, PM_MASK_SAT); 344 358 345 359 // saturated star (size consistent with PSF or larger)
Note:
See TracChangeset
for help on using the changeset viewer.
