- Timestamp:
- 01/19/05 17:05:31 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r215 r218 896 896 } 897 897 898 void 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 898 909 std::string SDMemTable::summary() { 899 910 ROScalarColumn<Int> scans(table_, "SCANID"); -
trunk/src/SDMemTable.h
r212 r218 101 101 virtual void setCoordInfo(std::vector<string> theinfo); 102 102 103 // Get/Set flux unit 103 104 std::string getFluxUnit() const; 105 void setFluxUnit (const std::string& unit); 104 106 105 107 // set the current value
Note:
See TracChangeset
for help on using the changeset viewer.