Changeset 4375 for trunk/psphot/src/source_moments.c
- Timestamp:
- Jun 24, 2005, 5:38:37 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/source_moments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/source_moments.c
r4251 r4375 5 5 bool status = false; 6 6 psArray *sources = NULL; 7 pmPSFClump psfClump; 7 8 8 9 psTimerStart ("psphot"); … … 25 26 26 27 // this should use ROBUST not SAMPLE median, but it is broken 27 pmSourceLocalSky_EAM (source, PS_STAT_SAMPLE_MEDIAN, INNER); 28 pmSourceMoments (source, RADIUS); 28 status = pmSourceLocalSky_EAM (source, PS_STAT_SAMPLE_MEDIAN, INNER); 29 if (!status) continue; 30 31 status = pmSourceMoments (source, RADIUS); 32 if (!status) continue; 33 29 34 psArrayAdd (sources, 100, source); 30 35 } 31 36 32 37 // group into STAR, COSMIC, GALAXY, SATURATED 33 pmSourceRoughClass (sources, config); 38 psfClump = pmSourcePSFClump (sources, config); 39 pmSourceRoughClass (sources, config, psfClump); 34 40 35 41 // make this optional 36 DumpMoments (sources, "moments.dat");42 // DumpMoments (sources, "moments.dat"); 37 43 38 44 psLogMsg ("psphot", 3, "moments: %f sec\n", psTimerMark ("psphot")); … … 41 47 return (sources); 42 48 } 49 50 // filter out bad peaks (eg, no valid pixels available for sky)
Note:
See TracChangeset
for help on using the changeset viewer.
