Commits
Des Small authored 31944856611 Merge
9 9 | \file radiometermeasure.hpp |
10 10 | |
11 11 | Model the radiometer measurement process |
12 12 | */ |
13 13 | |
14 14 | |
15 15 | |
16 16 | |
17 17 | |
18 18 | |
19 - | |
19 + | |
20 20 | |
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 | |