Changeset 251
- Timestamp:
- 01/21/05 19:02:25 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r236 r251 678 678 } 679 679 680 std::vector<double> SDMemTable::getRestFreqs() const 681 { 682 Table t = table_.keywordSet().asTable("FREQUENCIES"); 683 Vector<Double> tvec; 684 t.keywordSet().get("RESTFREQS",tvec); 685 std::vector<double> stlout; 686 tvec.tovector(stlout); 687 return stlout; 688 } 689 680 690 bool SDMemTable::putSDFreqTable(const SDFrequencyTable& sdft) 681 691 { … … 715 725 SDFrequencyTable SDMemTable::getSDFreqTable() const 716 726 { 727 // TODO !!!!! implement this properly USE with care 728 const Table& t = table_.keywordSet().asTable("FREQUENCIES"); 717 729 SDFrequencyTable sdft; 718 730 sdft.setLength(t.nrow()); 719 731 return sdft; 720 732 } -
trunk/src/SDMemTable.h
r236 r251 91 91 92 92 //virtual void getMask(Vector<Bool>& mask,Int whichRow=0) const; 93 93 std::vector<double> getRestFreqs() const; 94 94 95 // get info for current row 95 96 std::string getTime(casa::Int whichRow=0) const ; -
trunk/src/SDMemTableWrapper.h
r238 r251 143 143 table_->setRestFreqs(freqs, theunit); 144 144 } 145 146 std::vector<double> getRestFreqs() { 147 return table_->getRestFreqs(); 148 } 149 145 150 void setCoordInfo(std::vector<string> theinfo) { 146 151 table_->setCoordInfo(theinfo);
Note:
See TracChangeset
for help on using the changeset viewer.