Changeset 1060 for trunk/src/STWriter.cpp
- Timestamp:
- 06/07/06 16:24:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STWriter.cpp
r999 r1060 131 131 // Extract the header from the table. 132 132 STHeader hdr = in->getHeader(); 133 const Int nPol = hdr.npol; 134 const Int nChan = hdr.nchan; 133 //const Int nPol = hdr.npol; 134 //const Int nChan = hdr.nchan; 135 int nIF = in->nif(); 136 Vector<uInt> nPol(nIF),nChan(nIF); 137 Vector<Bool> havexpol(nIF); 138 for (int i=0;i<nIF;++i) { 139 nPol(i) = in->npol(); 140 nChan(i) = in->nchan(i); 141 havexpol(i) = nPol(i) > 2; 142 } 135 143 136 144 const Table table = in->table(); … … 140 148 // Create the output file and write static data. 141 149 Int status; 142 Bool havexpol = Bool(in->npol() > 2);143 status = writer_->create( filename, hdr.observer, hdr.project,150 //Bool havexpol = Bool(in->npol() > 2); 151 status = writer_->create(String(filename), hdr.observer, hdr.project, 144 152 hdr.antennaname, hdr.antennaposition, 145 153 hdr.obstype, hdr.equinox, hdr.freqref, 146 nChan, nPol, False, havexpol);154 nChan, nPol, havexpol, False); 147 155 if ( status ) { 148 156 throw(AipsError("Failed to create output file"));
Note: See TracChangeset
for help on using the changeset viewer.