casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WTerm.h
Go to the documentation of this file.
1 //# WTerm.h: Definition for WTerm
2 //# Copyright (C) 2007
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_WTERM_H
30 #define SYNTHESIS_WTERM_H
31 
32 
33 #include <casa/Arrays/Vector.h>
34 #include <msvis/MSVis/VisBuffer.h>
39 
40 
41 namespace casa{
42  // <summary> A class to apply the W-Term to the given image </summary>
43 
44  // <use visibility=export>
45  // <prerequisite>
46  // </prerequisite>
47  // <etymology>
48  // W-Term to account for non co-planar baselines
49  // </etymology>
50  //
51  // <synopsis>
52  //
53  //</synopsis>
54  class WTerm: public CFTerms
55  {
56  public:
57  WTerm () : CFTerms() {};
58  ~WTerm () {};
59 
60  virtual void applySky(casacore::Matrix<casacore::Complex>& screen,
61  const casacore::Int wPixel,
62  const casacore::Vector<casacore::Double>& sampling,
63  const casacore::Double wScale,
64  const casacore::Int inner);
65  virtual void applySky(casacore::Matrix<casacore::Complex>& screen,
66  const casacore::Vector<casacore::Double>& sampling,
67  const casacore::Double wValue,
68  const casacore::Int inner);
70  {(void)vb;(void)skyCoord;return 0;};
71  void setPolMap(const casacore::Vector<casacore::Int>& polMap) {(void)polMap;};
72  virtual casacore::Float getSupportThreshold() {return 1e-3;};
73 
74  // WTerm normalizes the image be unity
76  const casacore::Matrix<casacore::Float>& weights)
77  {(void)skyImage;(void)weights;};
78  virtual casacore::String name() {return casacore::String("W Term");};
79  //
80  // The following functions are not required for W-Term but need to
81  // be implemented here since they are pure virtuals in CFTerms
82  // base class.
84  const VisBuffer&,// vb,
85  const casacore::Bool,/* doSquint=true,*/
86  const casacore::Int&,/* cfKey=0,*/
87  const casacore::Int&,/* muellerTerm=0,*/
88  const casacore::Double /*freqVal*=-1*/)
89  {};
91  const VisBuffer&,// vb,
92  const casacore::Bool,/* doSquint=true,*/
93  const casacore::Int&,/* cfKey=0,*/
94  const casacore::Int&,/* muellerTerm=0,*/
95  const casacore::Double /*freqVal=-1*/)
96  {};
98  {(void)vb;(void)nUnique;return casacore::Vector<casacore::Int>();};
100  const casacore::Int& convSize,
101  const casacore::Int& convSampling,
102  const casacore::CoordinateSystem& skyCoord,
103  const casacore::Int& skyNx, const casacore::Int& skyNy,
104  casacore::CoordinateSystem& feedCoord)
105  {
106  (void)vb;(void)convSize;(void)convSampling;(void)skyCoord;(void)skyNx;(void)skyNy;(void)feedCoord;
107  return 0;
108  };
109 
111 
112 
113  casacore::Int getConvSize() {return 0;};
116  };
117 
118 };
119 
120 #endif
int Int
Definition: aipstype.h:50
virtual void applySky(casacore::Matrix< casacore::Complex > &screen, const casacore::Int wPixel, const casacore::Vector< casacore::Double > &sampling, const casacore::Double wScale, const casacore::Int inner)
casacore::Int makePBPolnCoords(const VisBuffer &vb, const casacore::Int &convSize, const casacore::Int &convSampling, const casacore::CoordinateSystem &skyCoord, const casacore::Int &skyNx, const casacore::Int &skyNy, casacore::CoordinateSystem &feedCoord)
Definition: WTerm.h:99
WTerm()
Definition: WTerm.h:57
The base class to represent the Aperture-Term of the Measurement Equation.
Definition: CFTerms.h:55
virtual casacore::Float getSupportThreshold()
Definition: WTerm.h:72
virtual casacore::String name()
Definition: WTerm.h:78
casacore::Float getConvWeightSizeFactor()
Definition: WTerm.h:115
double Double
Definition: aipstype.h:55
void applySky(casacore::ImageInterface< casacore::Float > &, const VisBuffer &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
The following functions are not required for W-Term but need to be implemented here since they are pu...
Definition: WTerm.h:83
int getVisParams(const VisBuffer &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
Definition: WTerm.h:69
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void setPolMap(const casacore::Vector< casacore::Int > &polMap)
The mapping from VisBuffer polarizations map to the Image plane polarization.
Definition: WTerm.h:71
float Float
Definition: aipstype.h:54
casacore::Int getConvSize()
Definition: WTerm.h:113
virtual void normalizeImage(casacore::Lattice< casacore::Complex > &skyImage, const casacore::Matrix< casacore::Float > &weights)
WTerm normalizes the image be unity.
Definition: WTerm.h:75
A class to apply the W-Term to the given image.
Definition: WTerm.h:54
casacore::Int getOversampling()
Definition: WTerm.h:114
const Double e
e and functions thereof:
void applySky(casacore::ImageInterface< casacore::Complex > &, const VisBuffer &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
Definition: WTerm.h:90
~WTerm()
Definition: WTerm.h:58
String: the storage and methods of handling collections of characters.
Definition: String.h:223
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
casacore::Bool rotationallySymmetric()
Definition: WTerm.h:110
Interconvert pixel and world coordinates.
casacore::Vector< casacore::Int > vbRow2CFKeyMap(const VisBuffer &vb, casacore::Int &nUnique)
Not sure if the following method is requried.
Definition: WTerm.h:97