Source
void ROCTIter::casfparam(Cube<Float>& f,String what) const { iROCTMainCols_->fparamArray(f,what); };
//# CTIter.cc: Implementation of CTIter.h
//# Copyright (C) 2011
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//----------------------------------------------------------------------------
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
//----------------------------------------------------------------------------
ROCTIter::ROCTIter(NewCalTable tab, const Block<String>& sortcol) :
sortCols_(sortcol.begin( ),sortcol.end( )),
singleSpw_(false),
parentNCT_(tab),
calCol_(tab),
ti_(NULL),
inct_(NULL),
iROCTMainCols_(NULL),
lastfield_(-1)
{
ti_=new TableIterator(tab,sortcol);
// Attach initial accessors:
attach();
// cout << "CTIter sort columns (" << sortCols_.nelements() << "): " << sortCols_ << endl;
// If SPW a sort column, then
singleSpw_=anyEQ(sortCols_,String("SPECTRAL_WINDOW_ID"));
// Initialize MSDerivedValues and MEpoch
msd_ = new MSDerivedValues();
msd_->setAntennas(calCol_.antenna());
epoch_ = calCol_.timeMeas()(0);