IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2005, 5:33:01 PM (21 years ago)
Author:
eugene
Message:

psphot reorganization: merged in pmObjects code from psModule, modified to work with psLib 0.7.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotOutput.c

    r4949 r4954  
    372372
    373373// write the peaks to an output file
    374 bool psPeaksWriteText (psArray *sources, char *filename) {
     374bool pmPeaksWriteText (psArray *sources, char *filename) {
    375375
    376376    int i;
    377377    FILE *f;
    378     psPeak *peak;
     378    pmPeak *peak;
    379379       
    380380    f = fopen (filename, "w");
    381381    if (f == NULL) {
    382         psLogMsg ("psPeaksWriteText", 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 = (psPeak *) 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];
    388388        if (peak == NULL) continue;
    389389        fprintf (f, "%5d %5d  %7.1f\n",
     
    638638    unlink (filename);
    639639    psFits *fits = psFitsAlloc (filename);
    640     psFitsWriteImage (fits, header, image, 0, NULL);
     640    psFitsWriteImage (fits, header, image, 0);
    641641    psFree (fits);
    642642    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.