Source
regridSpwAux(0,inputReferenceFrame_p,combinedCHAN_FREQ,combinedCHAN_WIDTH,inputCHAN_FREQ,inputCHAN_WIDTH,regriddedCHAN_FREQ,regriddedCHAN_WIDTH,string("Combined"));
//# MSTransformManager.cc: This file contains the implementation of the MSTransformManager 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
/////////////////////////////////////////////
////// MS Transform Framework utilities /////
/////////////////////////////////////////////
namespace MSTransformations
{
Double wtToSigma(Double weight)
{
return weight > FLT_MIN ? 1.0 / std::sqrt (weight) : -1.0;
}
Double sigmaToWeight(Double sigma)
{
return sigma > FLT_MIN ? 1.0 / std::pow (sigma,2) : 0.0;
}
Unit Hz(String("Hz"));
}
/////////////////////////////////////////////
/// MSTransformManager implementation ///
/////////////////////////////////////////////
// -----------------------------------------------------------------------
// Default constructor
// -----------------------------------------------------------------------
MSTransformManager::MSTransformManager()
{
initialize();
return;
}
// -----------------------------------------------------------------------
// Configuration constructor
// -----------------------------------------------------------------------
MSTransformManager::MSTransformManager(Record configuration)
{
initialize();
configure(configuration);
return;
}
// -----------------------------------------------------------------------
// Default destructor
// -----------------------------------------------------------------------
MSTransformManager::~MSTransformManager()
{
// Close the output MS in case the application layer does not do it
close();
if (channelSelector_p) delete channelSelector_p;
if (visibilityIterator_p and !factory_p) delete visibilityIterator_p;
if (dataHandler_p) delete dataHandler_p;
if (phaseCenterPar_p) delete phaseCenterPar_p;
// Delete the output Ms if we are in buffer mode
// This has to be done after deleting the outputMS data handler
if (userBufferMode_p)