Changeset 2114 for branches/casa-prerelease
- Timestamp:
- 04/06/11 19:23:51 (14 years ago)
- Location:
- branches/casa-prerelease/pre-asap/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/casa-prerelease/pre-asap/src
- Property svn:mergeinfo changed
/trunk/src merged: 2111
- Property svn:mergeinfo changed
-
branches/casa-prerelease/pre-asap/src/SConscript
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/casa-prerelease/pre-asap/src/Scantable.cpp
r2095 r2114 944 944 } 945 945 946 std::string Scantable::summary( bool verbose ) 946 947 std::string Scantable::headerSummary( bool verbose ) 947 948 { 948 949 // Format header info 950 // STHeader sdh; 951 // sdh = getHeader(); 952 // sdh.print(); 949 953 ostringstream oss; 950 oss << endl;951 oss << asap::SEPERATOR << endl;952 oss << " Scan Table Summary" << endl;953 oss << asap::SEPERATOR << endl;954 954 oss.flags(std::ios_base::left); 955 955 oss << setw(15) << "Beams:" << setw(4) << nbeam() << endl … … 994 994 oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl; 995 995 oss << selector_.print() << endl; 996 /// @todo implement verbose mode 997 return String(oss); 998 } 999 1000 std::string Scantable::summary( bool verbose ) 1001 { 1002 ostringstream oss; 996 1003 oss << endl; 1004 oss << asap::SEPERATOR << endl; 1005 oss << " Scan Table Summary" << endl; 1006 oss << asap::SEPERATOR << endl; 1007 1008 // Format header info 1009 oss << headerSummary(verbose); 1010 oss << endl; 1011 997 1012 // main table 998 1013 String dirtype = "Position (" 999 1014 + getDirectionRefString() 1000 1015 + ")"; 1016 oss.flags(std::ios_base::left); 1001 1017 oss << setw(5) << "Scan" << setw(15) << "Source" 1002 1018 << setw(10) << "Time" << setw(18) << "Integration" -
branches/casa-prerelease/pre-asap/src/Scantable.h
r2095 r2114 371 371 { historyTable_.append(otherhist); } 372 372 373 std::string headerSummary(bool verbose=false); 373 374 std::string summary(bool verbose=false); 374 375 //std::string getTime(int whichrow=-1, bool showdate=true) const; -
branches/casa-prerelease/pre-asap/src/ScantableWrapper.h
r2095 r2114 218 218 } 219 219 220 std::string listHeader(bool verbose=false) const { 221 return table_->headerSummary(verbose); 222 } 223 220 224 std::vector<std::string> getHistory()const 221 225 { return table_->getHistory(); } -
branches/casa-prerelease/pre-asap/src/python_Scantable.cpp
r2047 r2114 119 119 .def("_summary", &ScantableWrapper::summary, 120 120 (boost::python::arg("verbose")=true) ) 121 .def("_list_header", &ScantableWrapper::listHeader, 122 (boost::python::arg("verbose")=true) ) 121 123 //.def("_getrestfreqs", &ScantableWrapper::getRestFrequencies) 122 124 .def("_getrestfreqs", &ScantableWrapper::getRestFrequency)
Note:
See TracChangeset
for help on using the changeset viewer.