casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimpleComponentFTMachine.h
Go to the documentation of this file.
1 //# SimpleComponentFTMachine.h: Definition for SimpleComponentFTMachine
2 //# Copyright (C) 1996,1997,1998,2000,2001
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_TRANSFORM2_SIMPLECOMPONENTFTMACHINE_H
30 #define SYNTHESIS_TRANSFORM2_SIMPLECOMPONENTFTMACHINE_H
31 
32 #include <msvis/MSVis/VisBuffer2.h>
36 #include <casa/Arrays/Array.h>
37 #include <casa/Arrays/Vector.h>
38 #include <casa/Arrays/Matrix.h>
39 #include <casa/Logging/LogIO.h>
40 #include <casa/Logging/LogSink.h>
42 
43 
44 namespace casa { //# NAMESPACE CASA - BEGIN
45 // Forward declarations
46 class ComponentList;
47 
48 namespace refim{ // namespace for refactoring
49 
50 
51 // <summary> does the simplest Fourier transform on SkyComponents </summary>
52 
53 // <use visibility=export>
54 
55 // <reviewed reviewer="" date="" tests="" demos="">
56 
57 // <prerequisite>
58 // <li> <linkto class=ComponentFTMachine>ComponentFTMachine</linkto> class
59 // <li> <linkto class=SkyEquation>SkyEquation</linkto> class
60 // <li> <linkto class=VisBuffer>VisBuffer</linkto> module
61 // </prerequisite>
62 //
63 // <etymology>
64 // ComponentFTMachine is a Machine for Fourier Transforms of
65 // SkyComponents
66 // </etymology>
67 //
68 // <synopsis>
69 // Does a simple transform of a sky component. The phase term
70 // is fully accurate but no smearing is included.
71 // </synopsis>
72 //
73 // <example>
74 // </example>
75 //
76 // <motivation>
77 // Allow transformation of sky components.
78 //
79 // </motivation>
80 //
81 // <todo asof="97/10/01">
82 // </todo>
83 
84 
85 
86 
87 
89 public:
90 
91  // Get actual coherence
92  virtual void get(vi::VisBuffer2& vb, const ComponentList& compList, casacore::Int row=-1);
93  // Get actual coherence
94  virtual void get(vi::VisBuffer2& vb, SkyComponent& skycomponent, casacore::Int row=-1);
95 
96 protected:
97  void applyPhasor(const casacore::Int part, const casacore::Block<casacore::Int>& startrow,
100  const casacore::Int npol, const casacore::Int nchan,
101  const casacore::Vector<casacore::Int>& corrType,
103 
104  void predictVis(casacore::Complex*& modData, const casacore::Vector<casacore::Double>& invLambda,
105  const casacore::Vector<casacore::Double>& frequency,
106  const ComponentList& compList,
108  const casacore::uInt startrow, const casacore::uInt nrows,
109  const casacore::uInt nchan, const casacore::uInt npol,
112 
113 };
114 
115 } // end namespace refim
116 } //# NAMESPACE CASA - END
117 
118 #endif
int Int
Definition: aipstype.h:50
does the simplest Fourier transform on SkyComponents
ComponentFTMachine: a abstract base class defining the interface for a Fourier Transform Machine to b...
void predictVis(casacore::Complex *&modData, const casacore::Vector< casacore::Double > &invLambda, const casacore::Vector< casacore::Double > &frequency, const ComponentList &compList, ComponentType::Polarisation poltype, const casacore::Vector< casacore::Int > &corrType, const casacore::uInt startrow, const casacore::uInt nrows, const casacore::uInt nchan, const casacore::uInt npol, const casacore::Block< casacore::Matrix< casacore::Double > > &uvwcomp, const casacore::Block< casacore::Vector< casacore::Double > > &dphasecomp)
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
A class for manipulating groups of components.
void applyPhasor(const casacore::Int part, const casacore::Block< casacore::Int > &startrow, const casacore::Vector< casacore::uInt > &nRowp, const casacore::Vector< casacore::Double > &dphase, const casacore::Vector< casacore::Double > &invLambda, const casacore::Int npol, const casacore::Int nchan, const casacore::Vector< casacore::Int > &corrType, const casacore::Cube< casacore::DComplex > &dVis, casacore::Complex *&modData)
A component of a model of the sky.
Definition: SkyComponent.h:130
Polarisation
The ways the Flux polarisation can be represented.
unsigned int uInt
Definition: aipstype.h:51