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

add function 'setFluxUnit'

File:
1 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");
Note: See TracChangeset for help on using the changeset viewer.