Changeset 4954 for trunk/psphot/src/psphotOutput.c
- Timestamp:
- Sep 6, 2005, 5:33:01 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotOutput.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotOutput.c
r4949 r4954 372 372 373 373 // write the peaks to an output file 374 bool p sPeaksWriteText (psArray *sources, char *filename) {374 bool pmPeaksWriteText (psArray *sources, char *filename) { 375 375 376 376 int i; 377 377 FILE *f; 378 p sPeak *peak;378 pmPeak *peak; 379 379 380 380 f = fopen (filename, "w"); 381 381 if (f == NULL) { 382 psLogMsg ("p sPeaksWriteText", 3, "can't open output file for peaks%s\n", filename);383 return false; 384 } 385 386 for (i = 0; i < sources->n; i++) { 387 peak = (p sPeak *) sources->data[i];382 psLogMsg ("pmPeaksWriteText", 3, "can't open output file for peaks%s\n", filename); 383 return false; 384 } 385 386 for (i = 0; i < sources->n; i++) { 387 peak = (pmPeak *) sources->data[i]; 388 388 if (peak == NULL) continue; 389 389 fprintf (f, "%5d %5d %7.1f\n", … … 638 638 unlink (filename); 639 639 psFits *fits = psFitsAlloc (filename); 640 psFitsWriteImage (fits, header, image, 0 , NULL);640 psFitsWriteImage (fits, header, image, 0); 641 641 psFree (fits); 642 642 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
