Changeset 199 for trunk


Ignore:
Timestamp:
01/14/05 15:03:57 (20 years ago)
Author:
kil064
Message:

add ascii file capabilut via SDAsciiWriter

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDWriter.cc

    r192 r199  
    4444#include "SDWriter.h"
    4545#include "SDFITSImageWriter.h"
     46#include "SDAsciiWriter.h"
    4647
    4748using namespace casa;
     
    6162    cWriter = new PKSSDwriter();
    6263  } else if (cFormat == "FITS") {
     64    cWriter = 0;
     65  } else if (cFormat == "ASCII") {
    6366    cWriter = 0;
    6467  }
     
    9295    } else if (cFormat == "FITS") {
    9396      cWriter = 0;
     97    } else if (cFormat == "ASCII") {
     98      cWriter = 0;
    9499    }
    95100  }
     
    116121        return 1;
    117122     }
    118   }
     123  } else if (cFormat=="ASCII") {
     124     SDAsciiWriter iw;
     125     if (iw.write(*table, filename)) {
     126        return 0;
     127     } else {
     128        return 1;
     129     }
     130  }
    119131
    120132// MS or SDFITS
  • trunk/src/SDWriter.h

    r192 r199  
    4949  ~SDWriter();
    5050
    51 // Format can be "SDIFTS", "FITS", or "MS2"
     51// Format can be "SDFITS", "FITS", "MS2" or "ASCII"
    5252  casa::Int setFormat(const string &format = "SDFITS");
    5353  casa::Int write(const casa::CountedPtr<SDMemTable> table,
Note: See TracChangeset for help on using the changeset viewer.