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