SimpleComponentFTMachine.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_SIMPLECOMPONENTFTMACHINE_H
00030 #define SYNTHESIS_TRANSFORM2_SIMPLECOMPONENTFTMACHINE_H
00031
00032 #include <msvis/MSVis/VisBuffer2.h>
00033 #include <synthesis/TransformMachines2/ComponentFTMachine.h>
00034 #include <measures/Measures/MDirection.h>
00035 #include <measures/Measures/MPosition.h>
00036 #include <casa/Arrays/Array.h>
00037 #include <casa/Arrays/Vector.h>
00038 #include <casa/Arrays/Matrix.h>
00039 #include <casa/Logging/LogIO.h>
00040 #include <casa/Logging/LogSink.h>
00041 #include <casa/Logging/LogMessage.h>
00042
00043
00044 namespace casa {
00045
00046 class ComponentList;
00047
00048 namespace refim{
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 class SimpleComponentFTMachine : public ComponentFTMachine {
00089 public:
00090
00091
00092 virtual void get(vi::VisBuffer2& vb, const ComponentList& compList, Int row=-1);
00093
00094 virtual void get(vi::VisBuffer2& vb, SkyComponent& skycomponent, Int row=-1);
00095
00096 protected:
00097 void applyPhasor(const Int part, const Block<Int>& startrow,
00098 const Vector<uInt>& nRowp,
00099 const Vector<Double>& dphase, const Vector<Double>& invLambda,
00100 const Int npol, const Int nchan,
00101 const Vector<Int>& corrType,
00102 const Cube<DComplex>& dVis, Complex*& modData);
00103
00104 void predictVis(Complex*& modData, const Vector<Double>& invLambda,
00105 const Vector<Double>& frequency,
00106 const ComponentList& compList,
00107 ComponentType::Polarisation poltype, const Vector<Int>& corrType,
00108 const uInt startrow, const uInt nrows,
00109 const uInt nchan, const uInt npol,
00110 const Block<Matrix<Double> > & uvwcomp,
00111 const Block<Vector<Double> > & dphasecomp);
00112
00113 };
00114
00115 }
00116 }
00117
00118 #endif