VLAIlluminationConvFunc.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_VLAILLUMINATIONCONVFUNC_H
00030 #define SYNTHESIS_VLAILLUMINATIONCONVFUNC_H
00031
00032 #include <synthesis/TransformMachines/IlluminationConvFunc.h>
00033 #include <synthesis/MeasurementComponents/CExp.new3.h>
00034 #include <synthesis/MeasurementComponents/ExpCache.h>
00035 #include <images/Images/TempImage.h>
00036 #include <casa/Exceptions.h>
00037 #include <msvis/MSVis/VisBuffer.h>
00038 namespace casa
00039 {
00040 class VLAIlluminationConvFunc: public IlluminationConvFunc
00041 {
00042 public:
00043 VLAIlluminationConvFunc(String fileName);
00044 VLAIlluminationConvFunc()
00045 :IlluminationConvFunc(),convFunc_p(),resolution()
00046 {pbRead_p=False;};
00047 VLAIlluminationConvFunc(Int n):IlluminationConvFunc(n) {pbRead_p=False;};
00048 ~VLAIlluminationConvFunc() {};
00049
00050 void load(String &fileName,Vector<Int>& whichStokes,
00051 Float overSampling=20,Bool putCoords=True);
00052 void storeImg(String &fileName,ImageInterface<Complex>& img);
00053 void storeImg(String &fileName,ImageInterface<Float>& img);
00054 void store(String &fileName);
00055 void loadFromImage(String &fileName);
00056 void getIdealConvFunc(Array<Complex>& buf);
00057 void ftAperture(TempImage<Complex>& uvgrid);
00058 void ftAperture() {ftAperture(convFunc_p); pbRead_p=True;};
00059 void storePB(String& fileName);
00060
00061 Bool pbReady() {return pbRead_p;}
00062
00063 CoordinateSystem makeUVCoords(CoordinateSystem& imageCoordSys,
00064 IPosition& shape);
00065 void regridApeture(CoordinateSystem& skyCS, IPosition& skyShape, TempImage<Complex>& uvGrid,
00066 const VisBuffer& vb,Bool doSquint=True);
00067 void applyPB(ImageInterface<Float>& pbImage, const VisBuffer& vb);
00068 void applyPB(ImageInterface<Complex>& pbImage, const VisBuffer& vb);
00069 void ftAperture(String& fileName, Vector<Int>& whichStokes,
00070 Float& overSampling, const CoordinateSystem& coordSys);
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084 private:
00085
00086 void fillPB(ImageInterface<Complex>& inImg, ImageInterface<Float>& outImg);
00087 void fillPB(ImageInterface<Complex>& inImg, ImageInterface<Complex>& outImg);
00088
00089 TempImage<Complex> convFunc_p;
00090
00091 Vector<Double> resolution;
00092 Bool pbRead_p;
00093 Float freq_p;
00094 };
00095
00096 };
00097 #endif