Source
xxxxxxxxxx
for (vector< vector<uInt> >::iterator correlations=selectedCorrelations_p.begin();correlations!=selectedCorrelations_p.end();correlations++)
//# FlagDataHandler.h: This file contains the implementation of the FlagDataHandler class.
//#
//# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
//# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
//# Copyright (C) European Southern Observatory, 2011, All rights reserved.
//#
//# This library is free software; you can redistribute it and/or
//# modify it under the terms of the GNU Lesser General Public
//# License as published by the Free software Foundation; either
//# version 2.1 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
//# Lesser General Public License for more details.
//#
//# You should have received a copy of the GNU Lesser General Public
//# License along with this library; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
//# MA 02111-1307 USA
//# $Id: $
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
/////////////////////////////////////
/// FlagDataHandler implementation //
/////////////////////////////////////
// -----------------------------------------------------------------------
// Default constructor
// -----------------------------------------------------------------------
FlagDataHandler::FlagDataHandler(string tablename, uShort iterationApproach, Double timeInterval):
tablename_p(tablename), iterationApproach_p(iterationApproach)
{
// Initialize logger
logger_p = new LogIO(LogOrigin("FlagDataHandler",__FUNCTION__,WHERE));
// Set time interval
setTimeInterval(timeInterval);
// Deactivate profiling by default
profiling_p = false;
// Disable async I/O by default
enableAsyncIO(false);
// Check if slurp is enabled
if (!asyncio_enabled_p)
{
slurp_p = true;
AipsrcValue<Bool>::find (slurp_p,"FlagDataHandler.slurp", true);
}
else
{
slurp_p = false;
}
// WARNING: By default the visibility iterator adds the following
// default columns: ARRAY_ID and FIELD_ID,DATA_DESC_ID and TIME.
// And they are needed for the correct operation of the VisibilityIterator
// (it needs to know when any of these changes to be able to give
// the correct coordinates with the data). If these columns are not
// explicitly sorted on, they will be added BEFORE any others, with
// unexpected iteration behaviour
// See: MSIter::construct
// WARNING: By specifying Time as a sort column we are not producing
// chunks with only one time step, but just the other way around!
// (all time steps are grouped in the same chunk). This is because TIME
// is one of the 'implicit' sort columns, and as explained before it is
// added BEFORE the ones specified by the user, resulting in chunks with
// only one time step, thus invalidating the time interval effect.
// See: MSIter.h
// By default we map polarizations because they are needed for the per-chunk logs
mapPolarizations_p = true;
// Antenna pointing map is only needed by the Elevation agent and I have move it there
mapAntennaPointing_p = false;
// These mapping is for the Quack agent, but requires a complete MS iteration, so I put it here,
// together with the full swap that I do to pre-compute the amount of memory necessary to run
mapScanStartStop_p = false;
mapScanStartStopFlagged_p = false;
// Initialize Pre-Load columns
preLoadColumns_p.clear();
preLoadColumns_p.push_back(VisBufferComponent2::FieldId);