Source
static casacore::Complex cfArea(casacore::Matrix<casacore::Complex>& cf, const casacore::Int& xSupport, const casacore::Int& ySupport, const casacore::Float& sampling);
// -*- C++ -*-
//# AWConvFunc.h: Definition of the AWConvFunc class
//# Copyright (C) 1997-2023
//# 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: casa-feedback@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;
}
namespace casa { //# NAMESPACE CASA - BEGIN
using namespace vi;
// class VisBuffer2;
//
//-------------------------------------------------------------------------------------------
//
namespace refim{
//forward decs
class WPConvFunc;
class EVLAAperture;
class AWConvFunc : public ConvolutionFunction
{
public:
AWConvFunc(const casacore::CountedPtr<ATerm> ATerm,
const casacore::CountedPtr<PSTerm> psTerm,
const casacore::CountedPtr<WTerm> wTerm,
const casacore::Bool wbAWP=false,
const casacore::Bool conjPB=casacore::True);
//this constructor is from 2023 to generate aw convfunc on the fly
//For now noot using generic Aterm but specificall ELVA/VLA specialization
AWConvFunc(std::shared_ptr<EVLAAperture> aterm, std::shared_ptr<WPConvFunc> wterm);
~AWConvFunc() {};
//Makes the FT of PB (should be replicated to apply product of 2 different VP for
//heterogenous array
// No oversampling at this stage
// return conv function RR, RL, LR LL and freq axis as long a freq vector,
// supports are freqlist long
// if dosquint=false pa ignored and a average RR, LL beam is made
// The shape of convFunc is [convSize, convSize, 4, len(freqlist)]
// npix will be support on which the beam will be calculated
// this can be used to rescale the beam along with the csys to the grid it is being