casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VB2CFBMap.h
Go to the documentation of this file.
1 //# VB2CFBMap.h: Definition of the VB2CFBMap class
2 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
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 addressed 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 //# $Id$
27 //
28 #ifndef SYNTHESIS_TRANSFORM2_VB2CFBMAP_H
29 #define SYNTHESIS_TRANSFORM2_VB2CFBMAP_H
30 
31 #include <casa/Arrays/Array.h>
32 #include <casa/Arrays/Matrix.h>
33 #include <casa/Arrays/Vector.h>
34 #include <msvis/MSVis/VisBuffer2.h>
42 #include <msvis/MSVis/VisBuffer2.h>
44 using namespace casacore;
45 namespace casa { //# NAMESPACE CASA - BEGIN
46  namespace refim{
47  using namespace CFDefs;
48  class VB2CFBMap
49  {
50  public:
51  VB2CFBMap();
52 
53  ~VB2CFBMap() {};
54 
55  VB2CFBMap& operator=(const VB2CFBMap& other);
56  const casacore::CountedPtr<CFBuffer >& operator[](const int& i) {return vb2CFBMap_p[i];};
57 
59  inline int nelements() {return vb2CFBMap_p.nelements();}
60 
61  virtual casacore::Int mapAntIDToAntType(const casacore::Int& /*ant*/) {return 0;};
62  virtual casacore::Int makeVBRow2CFBMap(CFStore2& cfs,
63  const VisBuffer2& vb, const casacore::Quantity& dPA,
64  const casacore::Vector<casacore::Int>& dataChan2ImChanMap,
65  const casacore::Vector<casacore::Int>& dataPol2ImPolMap,
67  void setPhaseGradPerRow(const casacore::Vector< casacore::Vector<double> >& pointingOffset,
69  const vi::VisBuffer2& vb,
70  const int& row);
71  inline casacore::Matrix<casacore::Complex>& getCFPhaseGrad(const int& row)//, const int& ant0, const int& ant1)
72  {return cfPhaseGrad_p(row);}
73  void setDoPointing(const bool& dop=false) {doPointing_p = dop;newPhaseGradComputed_p=false;}
74  // protected:
78  bool doPointing_p, newPhaseGradComputed_p;
79 
80  };
81  }
82 }
83 #endif
A 1-D Specialization of the Array class.
casacore::Vector< casacore::CountedPtr< CFBuffer > > vb2CFBMap_p
protected:
Definition: VB2CFBMap.h:75
int Int
Definition: aipstype.h:50
PtrHolder< T > & operator=(const PtrHolder< T > &other)
Referenced counted pointer for constant data.
Definition: VisModelData.h:42
casacore::Matrix< casacore::Complex > & getCFPhaseGrad(const int &row)
Definition: VB2CFBMap.h:71
virtual casacore::Int mapAntIDToAntType(const casacore::Int &)
Definition: VB2CFBMap.h:61
casacore::Vector< casacore::Matrix< casacore::Complex > > cfPhaseGrad_p
Definition: VB2CFBMap.h:76
const casacore::CountedPtr< CFBuffer > & operator[](const int &i)
Definition: VB2CFBMap.h:56
casacore::Vector< casacore::CountedPtr< CFBuffer > > & getVBRow2CFBMap()
Definition: VB2CFBMap.h:58
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
casacore::CountedPtr< PhaseGrad > phaseGradCalculator_p
Definition: VB2CFBMap.h:77
void setDoPointing(const bool &dop=false)
Definition: VB2CFBMap.h:73
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42