HetArrayConvFunc.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 #ifndef SYNTHESIS_HETARRAYCONVFUNC_H
00029 #define SYNTHESIS_HETARRAYCONVFUNC_H
00030
00031 #include <synthesis/TransformMachines/SimplePBConvFunc.h>
00032
00033 namespace casa{
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 template<class T> class ImageInterface;
00054 template<class T> class Matrix;
00055 class VisBuffer;
00056 class MosaicFT;
00057 class HetArrayConvFunc : public SimplePBConvFunc
00058
00059 {
00060 public:
00061 HetArrayConvFunc();
00062 HetArrayConvFunc(const PBMathInterface::PBClass
00063 typeToUse, const String vpTable="");
00064
00065
00066 HetArrayConvFunc(const RecordInterface& rec, Bool calcFluxscale);
00067 virtual ~HetArrayConvFunc();
00068
00069
00070
00071
00072 virtual void findConvFunction(const ImageInterface<Complex>& iimage,
00073 const VisBuffer& vb,
00074 const Int& convSampling,
00075 const Vector<Double>& visFreq,
00076 Array<Complex>& convFunc,
00077 Array<Complex>& weightConvFunc,
00078 Vector<Int>& convsize,
00079 Vector<Int>& convSupport,
00080 Vector<Int>& polMap, Vector<Int>& chanMap, Vector<Int>& rowMap);
00081
00082 virtual ImageInterface<Float>& getFluxScaleImage();
00083
00084 virtual void sliceFluxScale(const Int npol);
00085
00086 virtual Bool toRecord(RecordInterface& rec);
00087 virtual Bool fromRecord(String& err, const RecordInterface& rec, Bool calcFluxscale=False);
00088 virtual void reset();
00089
00090
00091
00092 private:
00093 void applyGradientToYLine(const Int iy, Complex*& convFunctions,
00094 Complex*& convWeights, const Double pixXdir, const Double pixYdir,
00095 Int convSize, const Int ndishpair, const Int nchan, const Int nPol);
00096 Int factorial(Int n);
00097
00098
00099
00100
00101 Int checkPBOfField(const VisBuffer& vb, Vector<Int>& rowMap);
00102 void findAntennaSizes(const VisBuffer& vb);
00103 void supportAndNormalize(Int plane, Int convSampling);
00104 void supportAndNormalizeLatt(Int plane, Int convSampling, TempLattice<Complex>& convFuncLat,
00105 TempLattice<Complex>& weightConvFuncLat);
00106 void init(const PBMathInterface::PBClass typeToUse);
00107 void makerowmap(const VisBuffer& vb, Vector<Int>& rowMap);
00108 PBMathInterface::PBClass pbClass_p;
00109
00110 Vector<Int64> convFunctionMap_p;
00111 Int64 nDefined_p;
00112 SimpleOrderedMap <String, Int> antDiam2IndexMap_p;
00113 Vector<Int> antIndexToDiamIndex_p;
00114 Block<CountedPtr<PBMathInterface> > antMath_p;
00115 Int msId_p;
00116 Int actualConvIndex_p;
00117 Array<Complex> convFunc_p;
00118 Array<Complex> weightConvFunc_p;
00119 Array<Complex> convSave_p;
00120 Array<Complex> weightSave_p;
00121 Int convSize_p;
00122 String vpTable_p;
00123 Vector<Int> convSupport_p;
00124 Block <CountedPtr<Array<Complex> > > convFunctions_p;
00125 Block <CountedPtr<Array<Complex> > > convWeights_p;
00126 Block<CountedPtr<Vector<Int> > > convSizes_p;
00127 Block <CountedPtr<Vector<Int> > > convSupportBlock_p;
00128
00129 };
00130 };
00131
00132 #endif