Changeset 218


Ignore:
Timestamp:
01/19/05 17:05:31 (19 years ago)
Author:
kil064
Message:

add function 'setFluxUnit'

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r215 r218  
    896896}
    897897
     898void SDMemTable::setFluxUnit(const std::string& unit)
     899{
     900  String tmp(unit);
     901  Unit tU(tmp);
     902  if (tU==Unit("K") || tU==Unit("Jy")) {
     903     table_.rwKeywordSet().define(String("FluxUnit"), tmp);
     904  } else {
     905     throw AipsError("Illegal unit - must be compatible with Jy or K");
     906  }
     907}
     908
    898909std::string SDMemTable::summary()   {
    899910  ROScalarColumn<Int> scans(table_, "SCANID");
  • trunk/src/SDMemTable.h

    r212 r218  
    101101  virtual void setCoordInfo(std::vector<string> theinfo);
    102102
     103// Get/Set flux unit
    103104  std::string getFluxUnit() const;
     105  void setFluxUnit (const std::string& unit);
    104106
    105107  // set the current value
Note: See TracChangeset for help on using the changeset viewer.