Source
xxxxxxxxxx
casacore::Float interpLanczos( const casacore::Double& x , const casacore::Double& y, const casacore::Double& nx, const casacore::Double& ny, const casacore::Float* data, const casacore::Float a=3);
//# HetArrayConvFunc.h: Definition for HetArrayConvFunc
//# Copyright (C) 2008
//# 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 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 General Public
//# License for more details.
//#
//# You should have received a copy of the GNU 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 adressed 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
//#
//#
//# $Id$
namespace casacore{
template<class T> class ImageInterface;
template<class T> class Matrix;
}
namespace casa {
// <summary> A class to support FTMachines get their convolution casacore::Function </summary>
// <use visibility=export>
// <prerequisite>
// <li> <linkto class=VisBuffer>VisBuffer</linkto> module
// </prerequisite>
// <etymology>
// "HetArray" for Heterogeneous casacore::Array => different dish sizes
// "ConvFunc" for Convolution Functions
// appropriate convfunctions for each pair of antenna generated and cached
// </etymology>
//
// <synopsis>
// FTMachines like WProjection and MosaicFT need convolution functions to
// deal with directional dependent issues...
// this class and related ones provide and cache such functions for re-use
//</synopsis>
//Forward declarations
namespace vi{class VisBuffer2;}
namespace refim{
class HetArrayConvFunc : public SimplePBConvFunc
{
public:
HetArrayConvFunc();
HetArrayConvFunc(const PBMathInterface::PBClass
typeToUse, const casacore::String vpTable="");
//Constructor from record
//if for prediction only no need to recover fluxscale
HetArrayConvFunc(const casacore::RecordInterface& rec, casacore::Bool calcFluxscale);
virtual ~HetArrayConvFunc();
//Returns the convfunctions in the Arrays...the rowMap maps the vb.row
//to the plane of the convfunc appropriate...chanMap and polMap similarly
virtual void findConvFunction(const casacore::ImageInterface<casacore::Complex>& iimage,
const vi::VisBuffer2& vb,
const casacore::Int& convSampling,
const casacore::Vector<casacore::Double>& visFreq,
casacore::Array<casacore::Complex>& convFunc,
casacore::Array<casacore::Complex>& weightConvFunc,
casacore::Vector<casacore::Int>& convsize,
casacore::Vector<casacore::Int>& convSupport,
casacore::Vector<casacore::Int>& polMap, casacore::Vector<casacore::Int>& chanMap, casacore::Vector<casacore::Int>& rowMap,
const casacore::Bool getConjConvFuncs=false
);
virtual casacore::ImageInterface<casacore::Float>& getFluxScaleImage();
// slice flux scale images
virtual void sliceFluxScale(const casacore::Int npol);