casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
AWConvFuncEPJones.h
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //# AWConvFunc.h: Definition of the AWConvFunc 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_AWCONVFUNCEPJONES_H
00030 #define SYNTHESIS_AWCONVFUNCEPJONES_H
00031 
00032 #include <synthesis/TransformMachines/AWConvFunc.h>
00033 #include <coordinates/Coordinates/DirectionCoordinate.h>
00034 #include <synthesis/TransformMachines/PSTerm.h>
00035 #include <synthesis/TransformMachines/WTerm.h>
00036 #include <synthesis/TransformMachines/ATerm.h>
00037 #include <images/Images/ImageInterface.h>
00038 #include <images/Images/TempImage.h>
00039 #include <casa/Logging/LogIO.h>
00040 #include <casa/Logging/LogSink.h>
00041 #include <casa/Logging/LogOrigin.h>
00042 
00043 namespace casa { //# NAMESPACE CASA - BEGIN
00044   //
00045   //-------------------------------------------------------------------------------------------
00046   //
00047   class AWConvFuncEPJones : public AWConvFunc
00048   {
00049   public:
00050     AWConvFuncEPJones(const CountedPtr<ATerm> ATerm,
00051                       const CountedPtr<PSTerm> psTerm,
00052                       const CountedPtr<WTerm> wTerm,
00053                       const Bool wbAWP=False):
00054       AWConvFunc(ATerm,psTerm,wTerm,wbAWP), imageDC_p(),imageObsInfo_p()
00055     {};
00056     ~AWConvFuncEPJones() {};
00057     AWConvFuncEPJones& operator=(const AWConvFuncEPJones& other);
00058 
00059     // MosaicFT related
00060     virtual void makeConvFunction(const ImageInterface<Complex>& image,
00061                                   const VisBuffer& vb,
00062                                   const Int wConvSize,
00063                                   const CountedPtr<PolOuterProduct>& pop,
00064                                   const Float pa,
00065                                   const Float dpa,
00066                                   const Vector<Double>& uvScale, const Vector<Double>& uvOffset,
00067                                   const Matrix<Double>& vbFreqSelection,
00068                                   CFStore2& cfs,
00069                                   CFStore2& cfwts);
00070     virtual Vector<Double> findPointingOffset(const ImageInterface<Complex>& image,
00071                                               const VisBuffer& vb);
00072 
00073     void toPix(const VisBuffer& vb);
00074     void storeImageParams(const ImageInterface<Complex>& iimage,
00075                           const VisBuffer& vb);
00076   private:
00077     // MosaicFT related
00078     DirectionCoordinate imageDC_p;
00079     ObsInfo imageObsInfo_p;
00080     Int nx_p; 
00081     Int ny_p;
00082     Int nchan_p;
00083     Int npol_p;
00084     CoordinateSystem csys_p;
00085     DirectionCoordinate dc_p;
00086     MDirection::Convert pointToPix_p;
00087     MeasFrame pointFrame_p;
00088     MEpoch::Types timeMType_p;
00089     Unit timeUnit_p;
00090     Int directionIndex_p;
00091     MDirection direction1_p;
00092     MDirection direction2_p;
00093   };
00094   //
00095   //-------------------------------------------------------------------------------------------
00096   //
00097 };
00098 #endif