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_SIMPLECOMPONENTFTMACHINE_H
00030 #define SYNTHESIS_SIMPLECOMPONENTFTMACHINE_H
00031
00032 #include <msvis/MSVis/VisBuffer.h>
00033 #include <synthesis/TransformMachines/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
00047
00048
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 class ComponentList;
00082
00083
00084 class SimpleComponentFTMachine : public ComponentFTMachine {
00085 public:
00086
00087
00088 virtual void get(VisBuffer& vb, const ComponentList& compList, Int row=-1);
00089
00090 virtual void get(VisBuffer& vb, SkyComponent& skycomponent, Int row=-1);
00091
00092 protected:
00093 void applyPhasor(const Int part, const Block<Int>& startrow,
00094 const Vector<uInt>& nRowp,
00095 const Vector<Double>& dphase, const Vector<Double>& invLambda,
00096 const Int npol, const Int nchan,
00097 const Vector<Int>& corrType,
00098 const Cube<DComplex>& dVis, Complex*& modData);
00099
00100 void predictVis(Complex*& modData, const Vector<Double>& invLambda,
00101 const Vector<Double>& frequency,
00102 const ComponentList& compList,
00103 ComponentType::Polarisation poltype, const Vector<Int>& corrType,
00104 const uInt startrow, const uInt nrows,
00105 const uInt nchan, const uInt npol,
00106 const Block<Matrix<Double> > & uvwcomp,
00107 const Block<Vector<Double> > & dphasecomp);
00108
00109 };
00110
00111 }
00112
00113 #endif