EVLAAperture.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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
00035 #include <synthesis/TransformMachines2/AzElAperture.h>
00036 #include <coordinates/Coordinates/CoordinateSystem.h>
00037
00038
00039
00040 namespace casa {
00041
00042 template<class T> class ImageInterface;
00043 template<class T> class Matrix;
00044 class VisBuffer;
00045
00046 namespace refim{
00047 class EVLAAperture : public AzElAperture
00048 {
00049 public:
00050
00051 EVLAAperture(): AzElAperture(), polMap_p(), feedStokes_p() {};
00052 ~EVLAAperture() {};
00053 EVLAAperture& operator=(const EVLAAperture& other);
00054
00055
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
00092
00093
00094
00095
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