Changeset 5617
- Timestamp:
- Nov 28, 2005, 10:35:43 AM (21 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 4 edited
-
pmPeaksSigmaLimit.c (modified) (1 diff)
-
psphot.c (modified) (1 diff)
-
psphotOutput.c (modified) (2 diffs)
-
psphotSourceStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/pmPeaksSigmaLimit.c
r5593 r5617 31 31 psFree (smooth); 32 32 33 // make this optional 34 // DumpPeaks (peaks, "peaks.dat"); 35 33 // optional dump of all peak data 34 char *output = psMetadataLookupPtr (&status, config, "PEAKS_OUTPUT_FILE"); 35 if (status && (output != NULL) && (output[0])) { 36 pmPeaksWriteText (peaks, output); 37 psFree (output); 38 } 39 36 40 psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot")); 37 38 41 return (peaks); 39 42 } -
trunk/psphot/src/psphot.c
r5086 r5617 30 30 // XXX - this has 1 leak 31 31 psfClump = pmSourcePSFClump (sources, config); 32 // psLogMsg ("psphot", 4, "clump X, Y: %f, %f\n", psfClump.X, psfClump.Y); 33 // psLogMsg ("psphot", 4, "clump DX, DY: %f, %f\n", psfClump.dX, psfClump.dY); 32 34 33 35 // group into STAR, COSMIC, GALAXY, SATURATED 34 36 pmSourceRoughClass (sources, config, psfClump); 37 38 // optional dump of all rough source data 39 { 40 bool status; 41 char *output = psMetadataLookupPtr (&status, config, "MOMENTS_OUTPUT_FILE"); 42 if (status && (output != NULL) && (output[0])) { 43 pmMomentsWriteText (sources, output); 44 psFree (output); 45 } 46 } 35 47 36 48 // source analysis is done in S/N order (brightest first) -
trunk/psphot/src/psphotOutput.c
r5350 r5617 348 348 349 349 // write the peaks to an output file 350 bool pmPeaksWriteText (psArray * sources, char *filename) {350 bool pmPeaksWriteText (psArray *peaks, char *filename) { 351 351 352 352 int i; 353 353 FILE *f; 354 pmPeak *peak;355 354 356 355 f = fopen (filename, "w"); … … 360 359 } 361 360 362 for (i = 0; i < sources->n; i++) {363 p eak = (pmPeak *) sources->data[i];361 for (i = 0; i < peaks->n; i++) { 362 pmPeak *peak = peaks->data[i]; 364 363 if (peak == NULL) continue; 365 364 fprintf (f, "%5d %5d %7.1f\n", -
trunk/psphot/src/psphotSourceStats.c
r5058 r5617 46 46 psFree (source); 47 47 } 48 48 49 49 psLogMsg ("psphot", 3, "%d moments: %f sec\n", sources->n, psTimerMark ("psphot")); 50 50 return (sources);
Note:
See TracChangeset
for help on using the changeset viewer.
