Ignore:
Timestamp:
10/10/12 14:53:53 (12 years ago)
Author:
Malte Marquarding
Message:

merge from trunk into release candidate

Location:
tags/asap-4.1.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/asap-4.1.0

  • tags/asap-4.1.0/src

  • tags/asap-4.1.0/src/Scantable.cpp

    r2645 r2662  
    2020#include <casa/OS/File.h>
    2121#include <casa/OS/Path.h>
     22#include <casa/Logging/LogIO.h>
    2223#include <casa/Arrays/Array.h>
    2324#include <casa/Arrays/ArrayAccessor.h>
     
    168169*/
    169170
    170 Scantable::Scantable( const Scantable& other, bool clear ):
    171   Logger()
     171Scantable::Scantable( const Scantable& other, bool clear )
    172172{
    173173  // with or without data
     
    726726
    727727void Scantable::calculateAZEL()
    728 {
     728
     729  LogIO os( LogOrigin( "Scantable", "calculateAZEL()", WHERE ) ) ;
    729730  MPosition mp = getAntennaPosition();
    730731  MEpoch::ROScalarColumn timeCol(table_, "TIME");
    731732  ostringstream oss;
    732   oss << "Computed azimuth/elevation using " << endl
    733       << mp << endl;
     733  oss << mp;
     734  os << "Computed azimuth/elevation using " << endl
     735     << String(oss) << endl;
    734736  for (Int i=0; i<nrow(); ++i) {
    735737    MEpoch me = timeCol(i);
    736738    MDirection md = getDirection(i);
    737     oss  << " Time: " << formatTime(me,False) << " Direction: " << formatDirection(md)
     739    os  << " Time: " << formatTime(me,False)
     740        << " Direction: " << formatDirection(md)
    738741         << endl << "     => ";
    739742    MeasFrame frame(mp, me);
     
    744747    azCol_.put(i,Float(azel[0]));
    745748    elCol_.put(i,Float(azel[1]));
    746     oss << "azel: " << azel[0]/C::pi*180.0 << " "
    747         << azel[1]/C::pi*180.0 << " (deg)" << endl;
    748   }
    749   pushLog(String(oss));
     749    os << "azel: " << azel[0]/C::pi*180.0 << " "
     750       << azel[1]/C::pi*180.0 << " (deg)" << LogIO::POST;
     751  }
    750752}
    751753
     
    885887                                           const std::string& poltype ) const
    886888{
     889  LogIO os( LogOrigin( "Scantable", "getSpectrum()", WHERE ) ) ;
     890
    887891  String ptype = poltype;
    888892  if (poltype == "" ) ptype = getPolType();
     
    907911  }
    908912  if ( arr.nelements() == 0 )
    909     pushLog("Not enough polarisations present to do the conversion.");
     913   
     914    os << "Not enough polarisations present to do the conversion."
     915       << LogIO::POST;
    910916  arr.tovector(out);
    911917  return out;
Note: See TracChangeset for help on using the changeset viewer.