Changeset 2662 for tags/asap-4.1.0/src/Scantable.cpp
- Timestamp:
- 10/10/12 14:53:53 (12 years ago)
- Location:
- tags/asap-4.1.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/asap-4.1.0
-
tags/asap-4.1.0/src
- Property svn:mergeinfo changed
/trunk/src (added) merged: 2657-2658
- Property svn:mergeinfo changed
-
tags/asap-4.1.0/src/Scantable.cpp
r2645 r2662 20 20 #include <casa/OS/File.h> 21 21 #include <casa/OS/Path.h> 22 #include <casa/Logging/LogIO.h> 22 23 #include <casa/Arrays/Array.h> 23 24 #include <casa/Arrays/ArrayAccessor.h> … … 168 169 */ 169 170 170 Scantable::Scantable( const Scantable& other, bool clear ): 171 Logger() 171 Scantable::Scantable( const Scantable& other, bool clear ) 172 172 { 173 173 // with or without data … … 726 726 727 727 void Scantable::calculateAZEL() 728 { 728 { 729 LogIO os( LogOrigin( "Scantable", "calculateAZEL()", WHERE ) ) ; 729 730 MPosition mp = getAntennaPosition(); 730 731 MEpoch::ROScalarColumn timeCol(table_, "TIME"); 731 732 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; 734 736 for (Int i=0; i<nrow(); ++i) { 735 737 MEpoch me = timeCol(i); 736 738 MDirection md = getDirection(i); 737 oss << " Time: " << formatTime(me,False) << " Direction: " << formatDirection(md) 739 os << " Time: " << formatTime(me,False) 740 << " Direction: " << formatDirection(md) 738 741 << endl << " => "; 739 742 MeasFrame frame(mp, me); … … 744 747 azCol_.put(i,Float(azel[0])); 745 748 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 } 750 752 } 751 753 … … 885 887 const std::string& poltype ) const 886 888 { 889 LogIO os( LogOrigin( "Scantable", "getSpectrum()", WHERE ) ) ; 890 887 891 String ptype = poltype; 888 892 if (poltype == "" ) ptype = getPolType(); … … 907 911 } 908 912 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; 910 916 arr.tovector(out); 911 917 return out;
Note: See TracChangeset
for help on using the changeset viewer.