casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NoOpATerm.h
Go to the documentation of this file.
1 //# ATerm.h: Definition for ATerm
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_NOOPATERM_H
30 #define SYNTHESIS_NOOPATERM_H
31 
32 
33 #include <casa/Arrays/Vector.h>
37 #include <msvis/MSVis/VisBuffer.h>
38 #include <casa/Containers/Block.h>
42 
43 namespace casa{
44  // <summary>
45  // The base class to represent the Aperture-Term of the Measurement Equation.
46  // </summary>
47 
48  // <use visibility=export>
49  // <prerequisite>
50  // </prerequisite>
51  // <etymology>
52  // A NoOp A-Term which does nothing but keeps the framework unchanged. Used when no A-term corrections are required.
53  // </etymology>
54  //
55  // <synopsis>
56  //
57  //</synopsis>
58  class NoOpATerm: public ATerm
59  {
60  public:
61  NoOpATerm (): ATerm() {};
62  virtual ~NoOpATerm () {};
63 
64  virtual casacore::String name() {return casacore::String("NoOpATerm");}
65 
67  const VisBuffer&,// vb,
68  casacore::Bool,// doSquint,
69  casacore::Int&,// bandID,
70  casacore::Double// freqVal
71  )
72  {};
73 
74  virtual void applySky(casacore::ImageInterface<casacore::Float>& ,//outputImages,
75  const VisBuffer& ,//vb,
76  const casacore::Bool ,//doSquint=true,
77  const casacore::Int& ,//cfKey=0,
78  const casacore::Int& ,//muellerTerm=0,
79  const casacore::Double // freqVal=-1
80  )
81  {};
83  const VisBuffer& ,//vb,
84  const casacore::Bool ,//doSquint=true,
85  const casacore::Int& ,//cfKey=0,
86  const casacore::Int& ,//muellerTerm=0,
87  const casacore::Double // freqVal=-1
88  )
89  {};
90 
92  const casacore::Double&,// pa,
93  const casacore::Bool,// doSquint,
94  const casacore::Int&,// cfKey,
95  const casacore::Int&,// muellerTerm,
96  const casacore::Double// freqVal=-1.0
97  )
98  {};
99 
101  const casacore::String&, //telescopeName
102  const casacore::String& // bandName
103  )
104  {return 0;};
105 
106  void cacheVBInfo(const casacore::String& /*telescopeName*/, const casacore::Float& /*diameter*/) {};
107  void cacheVBInfo(const VisBuffer& ) {};
108 
110  const casacore::Matrix<casacore::Float>& // weights
111  )
112  {};
113 
114  virtual int getVisParams(const VisBuffer& ,// vb
115  const casacore::CoordinateSystem& // skyCoord=casacore::CoordinateSystem()
116  )
117  {return 0;};
118 
119  virtual void rotate(const VisBuffer& ,//vb,
120  CFCell&, // cfs
121  const casacore::Double& // rotAngle
122  )
123  {};
124  virtual void rotate2(const VisBuffer& ,//vb,
125  CFCell&, // basecfs
126  CFCell&, // cfs
127  const casacore::Double& // rotAngle
128  )
129  {};
130  //
131  // As the name indicates, this class should always return true
132  //
133  virtual casacore::Bool isNoOp() {return true;};
134 
135  //
136  // Method used in the framework for other CFTerms as well. These are now all in the base class.
137  //
138  // virtual casacore::Int getConvSize() {};
139  // virtual casacore::Vector<casacore::Int> vbRow2CFKeyMap(const VisBuffer& vb, casacore::Int& nUnique)
140  // {casacore::Vector<casacore::Int> tmp; tmp.resize(vb.nRow()); tmp=0; nUnique=1; return tmp;}
141 
142  // virtual casacore::Int makePBPolnCoords(const VisBuffer& vb,
143  // const casacore::Int& convSize,
144  // const casacore::Int& convSampling,
145  // const casacore::CoordinateSystem& skyCoord,
146  // const casacore::Int& skyNx, const casacore::Int& skyNy,
147  // casacore::CoordinateSystem& feedCoord) {throw(casacore::AipsError("NoOpATerm::makePBPolnCoords() called"));};
148 
149  // virtual casacore::Float getConvWeightSizeFactor() {return 1.0;};
150  // virtual casacore::Int getOversampling() {return 20;};
151  virtual casacore::Float getSupportThreshold() {return 1e-3;};
152  // virtual casacore::Int mapAntIDToAntType(const casacore::Int& /*ant*/) {return 0;};
153  // virtual void setPolMap(const casacore::Vector<casacore::Int>& polMap) {polMap_p_base.resize(0);polMap_p_base=polMap;}
154  // virtual void getPolMap(casacore::Vector<casacore::Int>& polMap) {polMap.resize(0); polMap = polMap_p_base;};
155  // virtual casacore::Vector<casacore::Int> getAntTypeList() {casacore::Vector<casacore::Int> tt(1); tt=0;return tt;};
156  virtual casacore::Bool rotationallySymmetric() {return false;};
157  };
158 
159 };
160 
161 #endif
int Int
Definition: aipstype.h:50
virtual void makeFullJones(casacore::ImageInterface< casacore::Complex > &, const VisBuffer &, casacore::Bool, casacore::Int &, casacore::Double)
Definition: NoOpATerm.h:66
virtual ~NoOpATerm()
Definition: NoOpATerm.h:62
*virtual casacore::Bool rotationallySymmetric()
Definition: NoOpATerm.h:156
virtual void rotate(const VisBuffer &, CFCell &, const casacore::Double &)
virtual void rotate(const VisBuffer&amp; vb, CFStore2&amp; cfs)=0;
Definition: NoOpATerm.h:119
virtual void applySky(casacore::ImageInterface< casacore::Complex > &, const VisBuffer &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
Definition: NoOpATerm.h:82
virtual casacore::Bool isNoOp()
As the name indicates, this class should always return true.
Definition: NoOpATerm.h:133
virtual void rotate2(const VisBuffer &, CFCell &, CFCell &, const casacore::Double &)
Definition: NoOpATerm.h:124
double Double
Definition: aipstype.h:55
virtual int getVisParams(const VisBuffer &, const casacore::CoordinateSystem &)
Definition: NoOpATerm.h:114
virtual void applySky(casacore::ImageInterface< casacore::Complex > &, const casacore::Double &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
Definition: NoOpATerm.h:91
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Int getBandID(const casacore::Double &, const casacore::String &, const casacore::String &)
Definition: NoOpATerm.h:100
virtual casacore::Float getSupportThreshold()
Method used in the framework for other CFTerms as well.
Definition: NoOpATerm.h:151
virtual void normalizeImage(casacore::Lattice< casacore::Complex > &, const casacore::Matrix< casacore::Float > &)
virtual casacore::Vector&lt;casacore::Int&gt; vbRow2CFKeyMap(const VisBuffer&amp; vb, casacore::Int&amp; nUnique) =...
Definition: NoOpATerm.h:109
float Float
Definition: aipstype.h:54
The base class to represent the Aperture-Term of the Measurement Equation.
Definition: NoOpATerm.h:58
void cacheVBInfo(const casacore::String &, const casacore::Float &)
Definition: NoOpATerm.h:106
const Double e
e and functions thereof:
The base class to represent the Aperture-Term of the Measurement Equation.
Definition: ATerm.h:63
template &lt;class t&gt;=&quot;&quot;&gt;
Definition: CFCell.h:92
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
void cacheVBInfo(const VisBuffer &)
Definition: NoOpATerm.h:107
virtual casacore::String name()
Definition: NoOpATerm.h:64
virtual void applySky(casacore::ImageInterface< casacore::Float > &, const VisBuffer &, const casacore::Bool, const casacore::Int &, const casacore::Int &, const casacore::Double)
Definition: NoOpATerm.h:74
Interconvert pixel and world coordinates.