EVLAAperture.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //# EVLAAperture.h: Definition of the EVLAAperture 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_TRANSFORM2_EVLAAPERTURE_H
00030 #define SYNTHESIS_TRANSFORM2_EVLAAPERTURE_H
00031 
00032 #include <synthesis/TransformMachines2/Utils.h>
00033 #include <images/Images/ImageInterface.h>
00034 //#include <synthesis/MeasurementComponents/ATerm.h>
00035 #include <synthesis/TransformMachines2/AzElAperture.h>
00036 #include <coordinates/Coordinates/CoordinateSystem.h>
00037 //
00038 //---------------------------------------------------------------------
00039 //
00040 namespace casa { //# NAMESPACE CASA - BEGIN
00041   
00042   template<class T> class ImageInterface;
00043   template<class T> class Matrix;
00044   class VisBuffer;
00045   //  class EVLAAperture : public ATerm
00046   namespace refim{
00047   class EVLAAperture : public AzElAperture
00048   {
00049   public:
00050     //    EVLAAperture(): ATerm(), polMap_p(), feedStokes_p() {};
00051     EVLAAperture(): AzElAperture(), polMap_p(), feedStokes_p() {};
00052     ~EVLAAperture() {};
00053     EVLAAperture& operator=(const EVLAAperture& other);
00054     //
00055     // Overload these functions.  They are pure virtual in the base class (ATerm).
00056     //
00057     virtual String name() {return String("EVLA Aperture");};
00058 
00059     virtual void makeFullJones(ImageInterface<Complex>& pbImage,
00060                                const VisBuffer2& vb,
00061                                Bool doSquint, Int& bandID, Double freqVal);
00062 
00063     virtual void applySky(ImageInterface<Float>& outputImages,
00064                           const VisBuffer2& vb, 
00065                           const Bool doSquint=True,
00066                           const Int& cfKey=0,
00067                           const Int& muellerTerm=0,
00068                           const Double freqVal=-1.0);
00069     virtual void applySky(ImageInterface<Complex>& outputImages,
00070                           const VisBuffer2& vb, 
00071                           const Bool doSquint=True,
00072                           const Int& cfKey=0,
00073                           const Int& muellerTerm=0,
00074                           const Double freqVal=-1.0);
00075     virtual void applySky(ImageInterface<Complex>& outImages,
00076                           const Double& pa,
00077                           const Bool doSquint,
00078                           const Int& cfKey,
00079                           const Int& muellerTerm,
00080                           const Double freqVal=-1.0);
00081 
00082     void cacheVBInfo(const String& telescopeName, const Float& diameter);
00083     void cacheVBInfo(const VisBuffer2& vb);
00084     Int getBandID(const Double& freq, const String& telescopeName);
00085 
00086     virtual Vector<Int> vbRow2CFKeyMap(const VisBuffer2& vb, Int& nUnique)
00087     {Vector<Int> tmp; tmp.resize(vb.nRows()); tmp=0; nUnique=1; return tmp;}
00088 
00089     virtual void getPolMap(Vector<Int>& polMap) {polMap.resize(0);polMap=polMap_p;};
00090 
00091     // For this class, these will be served from the base classs (ATerm.h)
00092     // virtual Int getConvSize() {return CONVSIZE;};
00093     // virtual Int getOversampling() {return OVERSAMPLING;}
00094     // virtual Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;};
00095     // virtual Float getSupportThreshold() {return THRESHOLD;};
00096 
00097   protected:
00098     int getVisParams(const VisBuffer2& vb,const CoordinateSystem& skyCoord=CoordinateSystem());
00099     Bool findSupport(Array<Complex>& func, Float& threshold,Int& origin, Int& R);
00100     Int getVLABandID(Double& freq,String&telescopeName, const CoordinateSystem& skyCoord=CoordinateSystem());
00101     Int makePBPolnCoords(const VisBuffer2&vb,
00102                          const Int& convSize,
00103                          const Int& convSampling,
00104                          const CoordinateSystem& skyCoord,
00105                          const Int& skyNx, const Int& skyNy,
00106                          CoordinateSystem& feedCoord);
00107 
00108   private:
00109     Vector<Int> polMap_p;
00110     Vector<Int> feedStokes_p;
00111   };
00112 };
00113 };
00114 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1