Changeset 105 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
12/01/04 10:57:15 (20 years ago)
Author:
mar637
Message:

added set/getCoordInfo, reworked summary, added columns for azimuth,elevation,parangle,refbeam,fieldname,tcal,tcaltime
modified getabscissa, added getAbscissaString
added doppler, frequency frame an unit conversion via columns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r88 r105  
    9494  virtual void setSpectrum(std::vector<float> spectrum, int whichRow=0);
    9595  virtual void setRestFreqs(std::vector<double> freqs, const std::string& theunit);
    96 
     96  virtual void setCoordInfo(std::vector<string> theinfo);
    9797  // set the current value
    9898  virtual bool setIF(Int whichIF=0);
     
    109109  virtual Int getBeam() { return beamSel_; }
    110110  virtual Int getPol() { return polSel_; }
     111  virtual std::vector<string> getCoordInfo() const;
    111112
    112113  // number of scans in table
     
    114115
    115116  // print a summary to stdout
    116   virtual std::string summary() const;
     117  virtual std::string summary();
    117118
    118119  // write to disk as aips++ table
     
    146147  Int nCoordinates() const;
    147148
    148   std::vector<double> getAbscissa(int whichRow,
    149                                   const std::string& whichUnit="GHz",
    150                                   const std::string& whichFrame="TOPO",
    151                                   double restfreq=0.0);
     149  std::vector<double> getAbscissa(int whichRow=0);
     150  std::string getAbscissaString(Int whichRow=0);
     151
    152152private:
    153   // set up table structure
     153  // utility func for nice printout
     154  String formatSec(Double x);
    154155  void setup();
    155156  // the current cursor into the array
Note: See TracChangeset for help on using the changeset viewer.