Changeset 39 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
07/07/04 18:51:17 (20 years ago)
Author:
mmarquar
Message:

Added handling of frequencies, SpectralCoordinate? and an abscissa retrieval function,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r22 r39  
    4141#include <aips/Arrays/MaskedArray.h>
    4242
     43#include <trial/Coordinates/SpectralCoordinate.h>
     44
    4345namespace atnf_sd {
    4446
     
    6668
    6769  // put data from meta conatiner into the table
    68   virtual bool putSDContainer(const SDContainer& sdc);
    69   virtual bool putSDHeader(const SDHeader& sdh);
    70   virtual bool putSDFreqTable(const SDFrequencyTable& sdft) {;}
     70  bool putSDContainer(const SDContainer& sdc);
     71  bool putSDHeader(const SDHeader& sdh);
     72  bool putSDFreqTable(const SDFrequencyTable& sdft);
    7173
    7274  //get the dat wrapped up in a meta container
    73   virtual SDContainer getSDContainer(uInt whichRow=0) const;
    74   virtual SDHeader getSDHeader() const;
    75  
     75  SDContainer getSDContainer(uInt whichRow=0) const;
     76  SDHeader getSDHeader() const;
     77  SDFrequencyTable getSDFreqTable() const;
    7678  // get spectrum,mask and tsys for the given row, at the selected
    7779  // cursor - all as stl vectors
     
    127129                                      Bool useSelection = False);
    128130
     131  SpectralCoordinate getCoordinate(uInt whichIdx) const;
     132  std::vector<double> getAbscissa(int whichRow,
     133                                  const std::string& whichUnit="GHz",
     134                                  double restfreq=0.0);
    129135private:
    130136  // set up table structure
Note: See TracChangeset for help on using the changeset viewer.