SimpleComponentFTMachine.h

Go to the documentation of this file.
00001 //# SimpleComponentFTMachine.h: Definition for SimpleComponentFTMachine
00002 //# Copyright (C) 1996,1997,1998,2000,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be adressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
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 { //# NAMESPACE CASA - BEGIN
00045 // Forward declarations
00046 class ComponentList;
00047 
00048 namespace refim{ // namespace for refactoring
00049 
00050 
00051 // <summary>  does the simplest Fourier transform on SkyComponents </summary>
00052 
00053 // <use visibility=export>
00054 
00055 // <reviewed reviewer="" date="" tests="" demos="">
00056 
00057 // <prerequisite>
00058 //   <li> <linkto class=ComponentFTMachine>ComponentFTMachine</linkto> class
00059 //   <li> <linkto class=SkyEquation>SkyEquation</linkto> class
00060 //   <li> <linkto class=VisBuffer>VisBuffer</linkto> module
00061 // </prerequisite>
00062 //
00063 // <etymology>
00064 // ComponentFTMachine is a Machine for Fourier Transforms of
00065 // SkyComponents
00066 // </etymology>
00067 //
00068 // <synopsis> 
00069 // Does a simple transform of a sky component. The phase term
00070 // is fully accurate but no smearing is included.
00071 // </synopsis> 
00072 //
00073 // <example>
00074 // </example>
00075 //
00076 // <motivation>
00077 // Allow transformation of sky components.
00078 //
00079 // </motivation>
00080 //
00081 // <todo asof="97/10/01">
00082 // </todo>
00083 
00084 
00085 
00086 
00087 
00088 class SimpleComponentFTMachine : public ComponentFTMachine {
00089 public:
00090 
00091   // Get actual coherence 
00092   virtual void get(vi::VisBuffer2& vb, const ComponentList& compList, Int row=-1);
00093   // Get actual coherence 
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 } // end namespace refim
00116 } //# NAMESPACE CASA - END
00117 
00118 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1