WTerm.h

Go to the documentation of this file.
00001 //# WTerm.h: Definition for WTerm
00002 //# Copyright (C) 2007
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be adressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef SYNTHESIS_TRANSFORM2_WTERM_H
00030 #define SYNTHESIS_TRANSFORM2_WTERM_H
00031 
00032 
00033 #include <casa/Arrays/Vector.h>
00034 #include <msvis/MSVis/VisBuffer2.h>
00035 #include <images/Images/ImageInterface.h>
00036 #include <images/Images/PagedImage.h>
00037 #include <images/Images/TempImage.h>
00038 #include <synthesis/TransformMachines2/CFTerms.h>
00039 
00040 
00041 namespace casa{
00042   namespace refim{
00043   // <summary>  A class to apply the W-Term to the given image </summary>
00044   
00045   // <use visibility=export>
00046   // <prerequisite>
00047   // </prerequisite>
00048   // <etymology>
00049   // W-Term to account for non co-planar baselines
00050   // </etymology>
00051   //
00052   // <synopsis> 
00053   // 
00054   //</synopsis>
00055   class WTerm: public CFTerms
00056   {
00057   public:
00058     WTerm () : CFTerms() {};
00059     ~WTerm () {};
00060 
00061     virtual void applySky(Matrix<Complex>& screen, 
00062                           const Int wPixel, 
00063                           const Vector<Double>& sampling,
00064                           const Double wScale,
00065                           const Int inner);
00066     virtual void applySky(Matrix<Complex>& screen, 
00067                           const Vector<Double>& sampling,
00068                           const Double wValue,
00069                           const Int inner);
00070     int getVisParams(const VisBuffer2& vb,const CoordinateSystem& skyCoord=CoordinateSystem()) 
00071     {(void)vb;(void)skyCoord;return 0;};
00072     void setPolMap(const Vector<Int>& polMap) {(void)polMap;};
00073     virtual Float getSupportThreshold() {return 1e-3;};
00074 
00075     // WTerm normalizes the image be unity
00076     virtual void normalizeImage(Lattice<Complex>& skyImage,
00077                                 const Matrix<Float>& weights) 
00078     {(void)skyImage;(void)weights;};
00079     virtual String name() {return String("W Term");};
00080     //
00081     // The following functions are not required for W-Term but need to
00082     // be implemented here since they are pure virtuals in CFTerms
00083     // base class.
00084     void applySky(ImageInterface<Float>&,// outputImages,
00085                   const VisBuffer2&,// vb, 
00086                   const Bool,/* doSquint=True,*/
00087                   const Int&,/* cfKey=0,*/
00088                   const Int&,/* muellerTerm=0,*/
00089                   const Double /*freqVal*=-1*/) 
00090     {};
00091     void applySky(ImageInterface<Complex>&,// outputImages,
00092                   const VisBuffer2&,// vb, 
00093                   const Bool,/* doSquint=True,*/
00094                   const Int&,/* cfKey=0,*/
00095                   const Int&,/* muellerTerm=0,*/
00096                   const Double /*freqVal=-1*/) 
00097     {};
00098     Vector<Int> vbRow2CFKeyMap(const VisBuffer2& vb, Int& nUnique) 
00099     {(void)vb;(void)nUnique;return Vector<Int>();};
00100     Int makePBPolnCoords(const VisBuffer2& vb,
00101                          const Int& convSize,
00102                          const Int& convSampling,
00103                          const CoordinateSystem& skyCoord,
00104                          const Int& skyNx, const Int& skyNy,
00105                          CoordinateSystem& feedCoord) 
00106     {
00107       (void)vb;(void)convSize;(void)convSampling;(void)skyCoord;(void)skyNx;(void)skyNy;(void)feedCoord;
00108       return 0;
00109     };
00110 
00111     Bool rotationallySymmetric() {return True;};
00112 
00113 
00114     Int getConvSize() {return 0;};
00115     Int getOversampling() {return 4;};
00116     void setConvSize(const Int) {};
00117     void setOversampling(const Int) {};
00118     Float getConvWeightSizeFactor() {return 1.0;};
00119   };
00120   };
00121 };
00122 
00123 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1