Commits
183 183 | IPosition start(3, 0); |
184 184 | IPosition stop(3, 0); |
185 185 | IPosition step(3, 1); |
186 186 | for (uInt i=0; i<nrows; ++i) { |
187 187 | auto row = chans.row(i); |
188 188 | const auto& spw = row[0]; |
189 189 | if (_chanSelFlags.find(spw) == _chanSelFlags.end()) { |
190 190 | _chanSelFlags[spw] = Cube<Bool>(1, nchans[spw], 1, ! excludeChans); |
191 191 | } |
192 192 | start[1] = row[1]; |
193 + | ThrowIf(start[1] < 0, "Invalid channel selection in spw " + String::toString(spw)); |
193 194 | stop[1] = row[2]; |
194 195 | step[1] = row[3]; |
195 196 | Slicer slice(start, stop, step, Slicer::endIsLast); |
196 197 | _chanSelFlags[spw](slice) = excludeChans; |
197 198 | } |
198 199 | } |
199 200 | } |
200 201 | field = "datacolumn"; |
201 202 | if (config.isDefined(field)) { |
202 203 | ThrowIf( |