Line data Source code
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 <casacore/casa/Arrays/Vector.h>
34 : #include <casacore/images/Images/ImageInterface.h>
35 : #include <casacore/images/Images/PagedImage.h>
36 : #include <casacore/images/Images/TempImage.h>
37 : #include <msvis/MSVis/VisBuffer.h>
38 : #include <casacore/casa/Containers/Block.h>
39 : #include <synthesis/TransformMachines/CFTerms.h>
40 : #include <synthesis/TransformMachines/CFStore.h>
41 : #include <synthesis/TransformMachines/CFStore2.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 0 : NoOpATerm (): ATerm() {};
62 0 : virtual ~NoOpATerm () {};
63 :
64 0 : virtual casacore::String name() {return casacore::String("NoOpATerm");}
65 :
66 0 : virtual void makeFullJones(casacore::ImageInterface<casacore::Complex>&,// pbImage,
67 : const VisBuffer&,// vb,
68 : casacore::Bool,// doSquint,
69 : casacore::Int&,// bandID,
70 : casacore::Double// freqVal
71 : )
72 0 : {};
73 :
74 0 : 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 0 : {};
82 0 : virtual void applySky(casacore::ImageInterface<casacore::Complex>& ,//outputImages,
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 0 : {};
90 :
91 0 : virtual void applySky(casacore::ImageInterface<casacore::Complex>&,// outImages,
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 0 : {};
99 :
100 0 : casacore::Int getBandID(const casacore::Double&, //freq
101 : const casacore::String&, //telescopeName
102 : const casacore::String& // bandName
103 : )
104 0 : {return 0;};
105 :
106 0 : void cacheVBInfo(const casacore::String& /*telescopeName*/, const casacore::Float& /*diameter*/) {};
107 0 : void cacheVBInfo(const VisBuffer& ) {};
108 :
109 0 : virtual void normalizeImage(casacore::Lattice<casacore::Complex>& ,//skyImage,
110 : const casacore::Matrix<casacore::Float>& // weights
111 : )
112 0 : {};
113 :
114 0 : virtual int getVisParams(const VisBuffer& ,// vb
115 : const casacore::CoordinateSystem& // skyCoord=casacore::CoordinateSystem()
116 : )
117 0 : {return 0;};
118 :
119 0 : virtual void rotate(const VisBuffer& ,//vb,
120 : CFCell&, // cfs
121 : const casacore::Double& // rotAngle
122 : )
123 0 : {};
124 0 : virtual void rotate2(const VisBuffer& ,//vb,
125 : CFCell&, // basecfs
126 : CFCell&, // cfs
127 : const casacore::Double& // rotAngle
128 : )
129 0 : {};
130 : //
131 : // As the name indicates, this class should always return true
132 : //
133 0 : 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 0 : 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 0 : virtual casacore::Bool rotationallySymmetric() {return false;};
157 : };
158 :
159 : };
160 :
161 : #endif
|