Changeset 1280 for trunk/src


Ignore:
Timestamp:
11/03/06 16:08:22 (18 years ago)
Author:
mar637
Message:

Merge from Release2.1.1b tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STWriter.cpp

    r1259 r1280  
    6565  } else if (t== "SDFITS") {
    6666    writer_ = new PKSSDwriter();
    67   } else if (t== "FITS") {
    68     writer_ = 0;
    6967  } else if (t== "ASCII") {
    7068    writer_ = 0;
     
    9492  } else if (t== "SDFITS") {
    9593    writer_ = new PKSSDwriter();
    96   } else if (t== "FITS") {
    97     writer_ = 0;
    9894  } else if (t== "ASCII") {
    9995    writer_ = 0;
     
    108104{
    109105
    110 // Image FITS
    111 
    112   if (format_=="FITS") {
    113 //      Bool verbose = True;
    114 //      SDFITSImageWriter iw;
    115 //      if (iw.write(*in, filename, verbose)) {
    116 //         return 0;
    117 //      } else {
    118 //         return 1;
    119 //      }
    120   } else if (format_=="ASCII") {
    121      STAsciiWriter iw;
    122      if (iw.write(*in, filename)) {
    123         return 0;
    124      } else {
    125         return 1;
    126      }
     106  if (format_=="ASCII") {
     107    STAsciiWriter iw;
     108    if (iw.write(*in, filename)) {
     109      return 0;
     110    } else {
     111      return 1;
     112    }
    127113  }
    128114
     
    143129
    144130  const Table table = in->table();
    145 //   ROArrayColumn<uInt> freqIDCol(table, "FREQ_ID");
    146 //   Vector<uInt> freqIDs;
    147131
    148132  // Create the output file and write static data.
    149133  Int status;
    150   //Bool havexpol = Bool(in->npol() > 2);
    151134  status = writer_->create(String(filename), hdr.observer, hdr.project,
    152135                               hdr.antennaname, hdr.antennaposition,
Note: See TracChangeset for help on using the changeset viewer.