Changeset 8246 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Aug 8, 2006, 4:37:08 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r7631 r8246 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 6-22 20:04:13$8 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-08-09 02:37:08 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 static void sourceFree(pmSource *tmp) 28 28 { 29 psTrace( __func__, 4, "---- %s() begin ----\n", __func__);29 psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__); 30 30 psFree(tmp->peak); 31 31 psFree(tmp->pixels); … … 36 36 psFree(tmp->modelEXT); 37 37 psFree(tmp->blends); 38 psTrace( __func__, 4, "---- %s() end ----\n", __func__);38 psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__); 39 39 } 40 40 … … 61 61 pmSource *pmSourceAlloc() 62 62 { 63 psTrace( __func__, 3, "---- %s() begin ----\n", __func__);63 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); 64 64 static int id = 1; 65 65 pmSource *tmp = (pmSource *) psAlloc(sizeof(pmSource)); … … 83 83 tmp->pixWeight = 0.0; 84 84 85 psTrace( __func__, 3, "---- %s() end ----\n", __func__);85 psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__); 86 86 return(tmp); 87 87 } … … 163 163 pmPSFClump pmSourcePSFClump(psArray *sources, psMetadata *metadata) 164 164 { 165 psTrace( __func__, 3, "---- %s() begin ----\n", __func__);165 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); 166 166 167 167 # define NPIX 10 … … 328 328 } 329 329 330 psTrace( __func__, 3, "---- %s() end ----\n", __func__);330 psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__); 331 331 return (psfClump); 332 332 } … … 345 345 bool pmSourceRoughClass(psArray *sources, psMetadata *metadata, pmPSFClump clump) 346 346 { 347 psTrace( __func__, 3, "---- %s() begin ----\n", __func__);347 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); 348 348 349 349 psBool rc = true; … … 455 455 psTrace (".pmObjects.pmSourceRoughClass", 2, "Ncr: %3d\n", Ncr); 456 456 457 psTrace( __func__, 3, "---- %s(%d) end ----\n", __func__, rc);457 psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc); 458 458 return(rc); 459 459 } … … 481 481 psF32 radius) 482 482 { 483 psTrace( __func__, 3, "---- %s() begin ----\n", __func__);483 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); 484 484 PS_ASSERT_PTR_NON_NULL(source, false); 485 485 PS_ASSERT_PTR_NON_NULL(source->peak, false); … … 588 588 if ((numPixels < 0.75*R2) || (Sum <= 0)) { 589 589 psTrace (".psModules.pmSourceMoments", 3, "no valid pixels for source\n"); 590 psTrace( __func__, 3, "---- %s(false) end ----\n", __func__);590 psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__); 591 591 return (false); 592 592 } … … 607 607 "large centroid swing; invalid peak %d, %d\n", 608 608 source->peak->x, source->peak->y); 609 psTrace( __func__, 3, "---- %s(false) end ----\n", __func__);609 psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__); 610 610 return (false); 611 611 } … … 630 630 source->moments->Sx, source->moments->Sy, source->moments->Sxy); 631 631 632 psTrace( __func__, 3, "---- %s(true) end ----\n", __func__);632 psTrace("psModules.objects", 3, "---- %s(true) end ----\n", __func__); 633 633 return(true); 634 634 }
Note:
See TracChangeset
for help on using the changeset viewer.
