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_SIMPLECOMPONENTFTMACHINE_H
30 #define SYNTHESIS_SIMPLECOMPONENTFTMACHINE_H
31 
32 #include <msvis/MSVis/VisBuffer.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 
46 // <summary> does the simplest Fourier transform on SkyComponents </summary>
47 
48 // <use visibility=export>
49 
50 // <reviewed reviewer="" date="" tests="" demos="">
51 
52 // <prerequisite>
53 // <li> <linkto class=ComponentFTMachine>ComponentFTMachine</linkto> class
54 // <li> <linkto class=SkyEquation>SkyEquation</linkto> class
55 // <li> <linkto class=VisBuffer>VisBuffer</linkto> module
56 // </prerequisite>
57 //
58 // <etymology>
59 // ComponentFTMachine is a Machine for Fourier Transforms of
60 // SkyComponents
61 // </etymology>
62 //
63 // <synopsis>
64 // Does a simple transform of a sky component. The phase term
65 // is fully accurate but no smearing is included.
66 // </synopsis>
67 //
68 // <example>
69 // </example>
70 //
71 // <motivation>
72 // Allow transformation of sky components.
73 //
74 // </motivation>
75 //
76 // <todo asof="97/10/01">
77 // </todo>
78 
79 
80 // Forward declarations
81 class ComponentList;
82 
83 
85 public:
86 
87  // Get actual coherence
88  virtual void get(VisBuffer& vb, const ComponentList& compList, casacore::Int row=-1);
89  // Get actual coherence
90  virtual void get(VisBuffer& vb, SkyComponent& skycomponent, casacore::Int row=-1);
91 
92 protected:
93  void applyPhasor(const casacore::Int part, const casacore::Block<casacore::Int>& startrow,
96  const casacore::Int npol, const casacore::Int nchan,
97  const casacore::Vector<casacore::Int>& corrType,
99 
100  void predictVis(casacore::Complex*& modData, const casacore::Vector<casacore::Double>& invLambda,
101  const casacore::Vector<casacore::Double>& frequency,
102  const ComponentList& compList,
104  const casacore::uInt startrow, const casacore::uInt nrows,
105  const casacore::uInt nchan, const casacore::uInt npol,
108 
109 };
110 
111 } //# NAMESPACE CASA - END
112 
113 #endif
int Int
Definition: aipstype.h:50
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)
A class for manipulating groups of components.
A component of a model of the sky.
Definition: SkyComponent.h:130
Polarisation
The ways the Flux polarisation can be represented.
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
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)
unsigned int uInt
Definition: aipstype.h:51