Changeset 251 for trunk


Ignore:
Timestamp:
01/21/05 19:02:25 (20 years ago)
Author:
mar637
Message:
  • added getRestFreqs
  • filled in some of getSDFreqTable - not fully usable!!!!
Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r236 r251  
    678678}
    679679
     680std::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
    680690bool SDMemTable::putSDFreqTable(const SDFrequencyTable& sdft)
    681691{
     
    715725SDFrequencyTable SDMemTable::getSDFreqTable() const
    716726{
     727  // TODO !!!!! implement this properly USE with care
     728  const Table& t = table_.keywordSet().asTable("FREQUENCIES");
    717729  SDFrequencyTable sdft;
    718 
     730  sdft.setLength(t.nrow());
    719731  return sdft;
    720732}
  • trunk/src/SDMemTable.h

    r236 r251  
    9191
    9292  //virtual void getMask(Vector<Bool>& mask,Int whichRow=0) const;
    93 
     93  std::vector<double> getRestFreqs() const;
     94 
    9495  // get info for current row
    9596  std::string getTime(casa::Int whichRow=0) const ;
  • trunk/src/SDMemTableWrapper.h

    r238 r251  
    143143    table_->setRestFreqs(freqs, theunit);
    144144  }
     145
     146  std::vector<double> getRestFreqs() {
     147    return table_->getRestFreqs();
     148  }
     149
    145150  void setCoordInfo(std::vector<string> theinfo) {
    146151    table_->setCoordInfo(theinfo);
Note: See TracChangeset for help on using the changeset viewer.