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

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1