- Timestamp:
- 01/14/05 15:03:57 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDWriter.cc
r192 r199 44 44 #include "SDWriter.h" 45 45 #include "SDFITSImageWriter.h" 46 #include "SDAsciiWriter.h" 46 47 47 48 using namespace casa; … … 61 62 cWriter = new PKSSDwriter(); 62 63 } else if (cFormat == "FITS") { 64 cWriter = 0; 65 } else if (cFormat == "ASCII") { 63 66 cWriter = 0; 64 67 } … … 92 95 } else if (cFormat == "FITS") { 93 96 cWriter = 0; 97 } else if (cFormat == "ASCII") { 98 cWriter = 0; 94 99 } 95 100 } … … 116 121 return 1; 117 122 } 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 } 119 131 120 132 // MS or SDFITS -
trunk/src/SDWriter.h
r192 r199 49 49 ~SDWriter(); 50 50 51 // Format can be "SD IFTS", "FITS", or "MS2"51 // Format can be "SDFITS", "FITS", "MS2" or "ASCII" 52 52 casa::Int setFormat(const string &format = "SDFITS"); 53 53 casa::Int write(const casa::CountedPtr<SDMemTable> table,
Note:
See TracChangeset
for help on using the changeset viewer.