Changeset 8474
- Timestamp:
- Aug 22, 2006, 1:20:23 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r8471 r8474 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-08-22 2 0:46:55$8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-08-22 23:20:23 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 225 225 continue; 226 226 } 227 if (tmpSrc->mode & PM_SOURCE_MODE_BLEND) { 228 continue; 229 } 227 230 228 231 // for the moment, force splane dimensions to be 10x10 image pix … … 258 261 259 262 if (peaks == NULL) 263 { 260 264 return (psfClump); 265 } 261 266 } 262 267 // XXX EAM : possible errors: … … 395 400 if ((Nsatpix > 1) && big) { 396 401 tmpSrc->type = PM_SOURCE_TYPE_STAR; 397 tmpSrc->mode = PM_SOURCE_MODE_SATSTAR;402 tmpSrc->mode |= PM_SOURCE_MODE_SATSTAR; 398 403 Nsatstar ++; 399 404 continue; … … 403 408 if (Nsatpix > 1) { 404 409 tmpSrc->type = PM_SOURCE_TYPE_SATURATED; 405 tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;410 tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT; 406 411 Nsat ++; 407 412 continue; … … 413 418 if ((sigX < 0.05) || (sigY < 0.05)) { 414 419 tmpSrc->type = PM_SOURCE_TYPE_DEFECT; 415 tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;420 tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT; 416 421 Ncr ++; 417 422 continue; … … 421 426 if ((sigX > (clump.X + 3*clump.dX)) || (sigY > (clump.Y + 3*clump.dY))) { 422 427 tmpSrc->type = PM_SOURCE_TYPE_EXTENDED; 423 tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;428 tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT; 424 429 Next ++; 425 430 continue; … … 435 440 if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < 1.5)) { 436 441 tmpSrc->type = PM_SOURCE_TYPE_STAR; 437 tmpSrc->mode = PM_SOURCE_MODE_PSFSTAR;442 tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR; 438 443 Npsf ++; 439 444 continue; … … 442 447 // random type of star 443 448 tmpSrc->type = PM_SOURCE_TYPE_STAR; 444 tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;449 tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT; 445 450 } 446 451
Note:
See TracChangeset
for help on using the changeset viewer.
