Changeset 1816


Ignore:
Timestamp:
08/02/10 14:37:57 (14 years ago)
Author:
Malte Marquarding
Message:

added setScanrate. some more logging. added setFlagrow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/PKSFiller.cpp

    r1815 r1816  
    2020#include <casa/Arrays/ArrayLogical.h>
    2121#include <casa/Utilities/Regex.h>
    22 
     22#include <casa/Logging/LogIO.h>
    2323
    2424#include <measures/Measures/MDirection.h>
     
    6060bool PKSFiller::open( const std::string& filename)
    6161{
    62   /*
    63   if (table_.null())  {
    64     table_ = new Scantable();
    65   }
    66   */
    67 
    6862  Bool haveBase, haveSpectra;
    6963
     
    9286    throw(AipsError("No spectral data in file."));
    9387  }
    94   LogIO os;
     88
     89  LogIO os( LogOrigin( "PKSFiller", "open()", WHERE ) ) ;
    9590  nBeam_ = beams.nelements();
    9691  nIF_ = ifs.nelements();
     
    120115    throw(AipsError("Failed to get header."));
    121116  }
     117  os << "Found " << header.antennaname << " data." << LogIO::POST;
    122118  if ((header.obstype).matches("*SW*")) {
    123119    // need robust way here - probably read ahead of next timestamp
     
    129125  }
    130126  // Determine Telescope and set brightness unit
    131 
    132127  Bool throwIt = False;
    133128  Instrument inst = STAttr::convertInstrument(header.antennaname, throwIt);
     
    209204{
    210205  int status = 0;
     206  LogIO os( LogOrigin( "PKSFiller", "fill()", WHERE ) ) ;
    211207
    212208/**
     
    262258    Vector<Double> sratedbl(pksrec.scanRate.nelements());
    263259    convertArray(sratedbl, pksrec.scanRate);
    264     //setScanRate(sratedbl);
     260    setScanRate(sratedbl);
    265261
    266262    Regex rx(getReferenceRegex());
     
    297293                 pksrec.refFreq, pksrec.freqInc);
    298294
     295    // Note: this is only one value for all polarisations!
     296    setFlagrow(pksrec.flagrow);
    299297    // Turn the (nchan,npol) matrix and possible complex xPol vector
    300298    // into 2-4 rows in the scantable
     
    315313      commitRow();
    316314    }
    317     /*
    318     RecordFieldPtr< uInt > flagrowCol(rec, "FLAGROW");
    319     *flagrowCol = pksrec.flagrow;
    320     */
    321315    if ( haveXPol_[0] ) {
    322316      // no tsys given for xpol, so emulate it
Note: See TracChangeset for help on using the changeset viewer.