Commits

Des Small authored 31944856611 Merge
Merge branch 'master' into CAS-12365
No tags

casa5/code/air_casawvr/src/radiometermeasure.hpp

Modified
9 9 \file radiometermeasure.hpp
10 10
11 11 Model the radiometer measurement process
12 12 */
13 13
14 14 #ifndef _LIBAIR_RADIOMETERMEASURE_HPP__
15 15 #define _LIBAIR_RADIOMETERMEASURE_HPP__
16 16
17 17 #include <vector>
18 18 #include <stdexcept>
19 -
19 +#include <string>
20 20 #include <boost/smart_ptr.hpp>
21 21
22 22 namespace LibAIR2 {
23 23
24 24 /**
25 25 General exception class for errors in the radiometer subsystem.
26 26 */
27 27 class RadiometerError :
28 28 public std::runtime_error
29 29 {
107 107 for (size_t i = 0 ; i < FGrid.size() ; ++i )
108 108 res += coeffs[i] * skyTb[i];
109 109 return res;
110 110
111 111 }
112 112
113 113 double eval( const std::vector<double> & skyTb) const
114 114 {
115 115 if ( nchannels() > 1 )
116 116 {
117 - throw RadiometerError("More than one channel but asking for single result");
117 + std::string err("More than one channel but asking for single result");
118 + throw RadiometerError(err);
118 119 }
119 120
120 121 return eval( skyTb, 0);
121 122 }
122 123
123 124 };
124 125
125 126 /**
126 127 \brief Model of a simple double-sideband radiometer.
127 128

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut