Commits
175 175 | } |
176 176 | } |
177 177 | else |
178 178 | { |
179 179 | if (mapperid > (Int)itsMappers.nelements()) |
180 180 | throw ( AipsError("Internal Error : SIMapperCollection::initializeGrid(): mapperid out of range") ); |
181 181 | else itsMappers[mapperid]->initializeGrid(vb, dopsf, true); |
182 182 | } |
183 183 | } |
184 184 | |
185 + | void SIMapperCollection::initializeGrid(vi::VisibilityIterator2& vi, Bool dopsf, const Int mapperid) |
186 + | { |
185 187 | |
188 + | vi::VisBuffer2 *vb=vi.getVisBuffer(); |
189 + | initializeGrid(*vb, dopsf, mapperid); |
190 + | if(mapperid<0) |
191 + | { |
192 + | for (uInt k=0; k < itsMappers.nelements(); ++k) |
193 + | { |
194 + | ((itsMappers[k])->getFTM2())->initBriggsWeightor(vi); |
195 + | } |
196 + | } |
197 + | else |
198 + | { |
199 + | if (mapperid > (Int)itsMappers.nelements()) |
200 + | throw ( AipsError("Internal Error : SIMapperCollection::initializeGrid(): mapperid out of range") ); |
201 + | else (itsMappers[mapperid]->getFTM2())->initBriggsWeightor(vi); |
202 + | } |
203 + | } |
186 204 | |
187 205 | //////////////////////////////////////////////////////////////////////////////////// |
188 206 | /////////////////////////////////OLD vi/vb ////////////////////////////////////////////// |
189 207 | void SIMapperCollection::initializeGrid(VisBuffer& vb, Bool dopsf, const Int mapperid) |
190 208 | { |
191 209 | if(mapperid<0) |
192 210 | { |
193 211 | for (uInt k=0; k < itsMappers.nelements(); ++k) |
194 212 | { |
195 213 | (itsMappers[k])->initializeGrid(vb,dopsf,true); |