Ignore:
Timestamp:
06/07/06 16:24:27 (18 years ago)
Author:
mar637
Message:

Tracking changes in PKSreader/writer for MOPS support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STWriter.cpp

    r999 r1060  
    131131  // Extract the header from the table.
    132132  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  }
    135143
    136144  const Table table = in->table();
     
    140148  // Create the output file and write static data.
    141149  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,
    144152                               hdr.antennaname, hdr.antennaposition,
    145153                               hdr.obstype, hdr.equinox, hdr.freqref,
    146                                nChan, nPol, False, havexpol);
     154                               nChan, nPol, havexpol, False);
    147155  if ( status ) {
    148156    throw(AipsError("Failed to create output file"));
Note: See TracChangeset for help on using the changeset viewer.