Changeset 2791 for trunk/src/Scantable.cpp
- Timestamp:
- 03/15/13 14:36:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2789 r2791 5 5 // 6 6 // 7 // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2005 7 // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2005-2013 8 8 // 9 9 // Copyright: See COPYING file that comes with this distribution … … 5168 5168 } 5169 5169 5170 void Scantable::setTsys(const std::vector<float>& newvals, int whichrow) { 5171 Vector<Float> tsys(newvals); 5172 if (whichrow > -1) { 5173 if (tsysCol_.shape(whichrow) != tsys.shape()) 5174 throw(AipsError("Given Tsys values are not of the same shape")); 5175 tsysCol_.put(whichrow, tsys); 5176 } else { 5177 tsysCol_.fillColumn(tsys); 5178 } 5179 } 5180 5170 5181 vector<float> Scantable::getTsysSpectrum( int whichrow ) const 5171 5182 {
Note: See TracChangeset
for help on using the changeset viewer.