casa
$Rev:20696$
|
00001 // -*- C++ -*- 00002 //# EVLAConvFunc.h: Definition of the EVLAConvFunc class 00003 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003 00004 //# Associated Universities, Inc. Washington DC, USA. 00005 //# 00006 //# This library is free software; you can redistribute it and/or modify it 00007 //# under the terms of the GNU Library General Public License as published by 00008 //# the Free Software Foundation; either version 2 of the License, or (at your 00009 //# option) any later version. 00010 //# 00011 //# This library is distributed in the hope that it will be useful, but WITHOUT 00012 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00014 //# License for more details. 00015 //# 00016 //# You should have received a copy of the GNU Library General Public License 00017 //# along with this library; if not, write to the Free Software Foundation, 00018 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00019 //# 00020 //# Correspondence concerning AIPS++ should be addressed as follows: 00021 //# Internet email: aips2-request@nrao.edu. 00022 //# Postal address: AIPS++ Project Office 00023 //# National Radio Astronomy Observatory 00024 //# 520 Edgemont Road 00025 //# Charlottesville, VA 22903-2475 USA 00026 //# 00027 //# $Id$ 00028 // 00029 #ifndef SYNTHESIS_EVLACONVFUNC_H 00030 #define SYNTHESIS_EVLACONVFUNC_H 00031 00032 #include <images/Images/ImageInterface.h> 00033 #include <synthesis/TransformMachines/Utils.h> 00034 #include <synthesis/TransformMachines/BeamCalc.h> 00035 #include <synthesis/TransformMachines/CFStore.h> 00036 #include <synthesis/TransformMachines/VLACalcIlluminationConvFunc.h> 00037 //#include <synthesis/MeasurementComponents/IlluminationConvFunc.h> 00038 //#include <synthesis/MeasurementComponents/PixelatedConvFunc.h> 00039 #include <synthesis/TransformMachines/ConvolutionFunction.h> 00040 #include <coordinates/Coordinates/DirectionCoordinate.h> 00041 #include <coordinates/Coordinates/SpectralCoordinate.h> 00042 #include <coordinates/Coordinates/StokesCoordinate.h> 00043 #include <lattices/Lattices/LatticeFFT.h> 00044 #include <casa/Logging/LogIO.h> 00045 #include <casa/Logging/LogSink.h> 00046 #include <casa/Logging/LogOrigin.h> 00047 00048 namespace casa { //# NAMESPACE CASA - BEGIN 00049 template<class T> class ImageInterface; 00050 template<class T> class Matrix; 00051 class VisBuffer; 00052 class EVLAConvFunc : public ConvolutionFunction 00053 //: public PixelatedConvFunc<Complex> 00054 { 00055 public: 00056 // EVLAConvFunc(const CountedPtr<IlluminationConvFunc> ATerm): 00057 // ConvolutionFunction(),bandID_p(-1), polMap_p(), feedStokes_p(), ATerm_p(ATerm) 00058 EVLAConvFunc(): 00059 ConvolutionFunction(),bandID_p(-1), polMap_p(), feedStokes_p() 00060 {}; 00061 ~EVLAConvFunc() {}; 00062 EVLAConvFunc& operator=(const EVLAConvFunc& other); 00063 Int getVLABandID(Double& freq,String&telescopeName); 00064 Bool findSupport(Array<Complex>& func, Float& threshold,Int& origin, Int& R); 00065 void makeConvFunction(const ImageInterface<Complex>& image, 00066 const VisBuffer& vb, 00067 const Int wConvSize, 00068 const Float pa, 00069 const Float dpa, 00070 CFStore& cfs, 00071 CFStore& cfwts); 00072 int getVisParams(const VisBuffer& vb); 00073 Int makePBPolnCoords(const VisBuffer&vb, 00074 const Vector<Int>& polMap, 00075 const Int& convSize, 00076 const Int& convSampling, 00077 const CoordinateSystem& skyCoord, 00078 const Int& skyNx, const Int& skyNy, 00079 CoordinateSystem& feedCoord, 00080 Vector<Int>& cfStokes); 00081 // 00082 // Overloading these functions from ConvolutionFunction class 00083 // 00084 void setPolMap(const Vector<Int>& polMap); 00085 void setFeedStokes(const Vector<Int>& feedStokes); 00086 private: 00087 Int bandID_p; 00088 Float Diameter_p, Nant_p, HPBW, sigma; 00089 00090 LogIO& logIO() {return logIO_p;} 00091 LogIO logIO_p; 00092 Vector<Int> polMap_p; 00093 Vector<Int> feedStokes_p; 00094 CountedPtr<IlluminationConvFunc> ATerm_p; 00095 }; 00096 }; 00097 #endif