casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VBStore.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //# VBStore.h: Definition of the VBStore class
3 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
4 //# Associated Universities, Inc. Washington DC, USA.
5 //#
6 //# This library is free software; you can redistribute it and/or modify it
7 //# under the terms of the GNU Library General Public License as published by
8 //# the Free Software Foundation; either version 2 of the License, or (at your
9 //# option) any later version.
10 //#
11 //# This library is distributed in the hope that it will be useful, but WITHOUT
12 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 //# License for more details.
15 //#
16 //# You should have received a copy of the GNU Library General Public License
17 //# along with this library; if not, write to the Free Software Foundation,
18 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19 //#
20 //# Correspondence concerning AIPS++ should be addressed as follows:
21 //# Internet email: aips2-request@nrao.edu.
22 //# Postal address: AIPS++ Project Office
23 //# National Radio Astronomy Observatory
24 //# 520 Edgemont Road
25 //# Charlottesville, VA 22903-2475 USA
26 //#
27 //# $Id$
28 #ifndef SYNTHESIS_TRANSFORM2_VBSTORE_H
29 #define SYNTHESIS_TRANSFORM2_VBSTORE_H
32 
33 namespace casa { //# NAMESPACE CASA - BEGIN
34  namespace refim{
35  class VBStore
36  {
37  public:
38  VBStore():dopsf_p(false) {};
39  ~VBStore() {};
40  inline casacore::Int nRow() {return nRow_p;};
41  inline casacore::Int beginRow() {return beginRow_p;}
42  inline casacore::Int endRow() {return endRow_p;}
43  inline casacore::Int spwID() {return spwID_p;}
44  inline casacore::Bool dopsf() {return dopsf_p;}
55  const VisBuffer2& vb() {return *vb_p;}
57 
58  void reference(const VBStore& other)
59  {
60  nRow_p=other.nRow_p; beginRow_p=other.beginRow_p; endRow_p=other.endRow_p;
61  dopsf_p = other.dopsf_p;
63 
64  uvw_p.reference(other.uvw_p);
68  freq_p.reference(other.freq_p);
69  // if (useCorrected_p) correctedCube_p.reference(other.correctedCube_p);
70  // else visCube_p.reference(other.visCube_p);
71  // if (useCorrected_p)
72  // {
73  // correctedCube_p.reference(other.correctedCube_p);
74  // visCube_p.reference(other.correctedCube_p);
75  // }
76  // else visCube_p.reference(other.visCube_p);
80 
81  // uvw_p.assign(other.uvw_p);
82  // rowFlag_p.assign(other.rowFlag_p);
83  // flagCube_p.assign(other.flagCube_p);
84  // imagingWeight_p.assign(other.imagingWeight_p);
85  // freq_p.assign(other.freq_p);
86  // visCube_p.assign(other.visCube_p);
87  // modelCube_p.assign(other.modelCube_p);
88  // correctedCube_p.assign(other.correctedCube_p);
89  }
90 
102  const VisBuffer2 *vb_p;
107  };
108  }
109 } //# NAMESPACE CASA - END
110 #endif
virtual void reference(const Array< T > &other)
Make this matrix a reference to other.
casacore::Bool useCorrected_p
Definition: VBStore.h:98
int Int
Definition: aipstype.h:50
casacore::Matrix< casacore::Float > & imagingWeight()
Definition: VBStore.h:49
casacore::Matrix< casacore::uInt > TRCXi
Definition: VBStore.h:106
casacore::Int startChan_p
Definition: VBStore.h:91
CFBStruct cfBSt_p
Definition: VBStore.h:104
casacore::Vector< casacore::Double > & freq()
Definition: VBStore.h:51
casacore::Int endRow_p
Definition: VBStore.h:91
casacore::Cube< casacore::Complex > & modelCube()
Definition: VBStore.h:52
casacore::Matrix< casacore::Double > uvw_p
Definition: VBStore.h:92
casacore::Quantity paQuant_p
Definition: VBStore.h:100
casacore::Matrix< casacore::uInt > BLCXi
Definition: VBStore.h:106
casacore::Vector< casacore::Double > freq_p
Definition: VBStore.h:97
const VisBuffer2 * vb_p
Definition: VBStore.h:102
casacore::Int nRow_p
Definition: VBStore.h:91
casacore::Bool dopsf_p
Definition: VBStore.h:98
casacore::Vector< casacore::Bool > & rowFlag()
Definition: VBStore.h:47
virtual void reference(const Array< T > &other)
Make this cube a reference to other.
casacore::Int endRow()
Definition: VBStore.h:42
casacore::Double imRefFreq_p
Definition: VBStore.h:103
casacore::Matrix< casacore::uInt > BLCYi
Definition: VBStore.h:106
casacore::Bool useCorrected()
Definition: VBStore.h:45
casacore::Cube< casacore::Complex > modelCube_p
Definition: VBStore.h:96
casacore::Vector< casacore::Int > corrType_p
Definition: VBStore.h:99
casacore::Cube< casacore::Complex > & visCube()
Definition: VBStore.h:50
double Double
Definition: aipstype.h:55
casacore::Quantity pa()
Definition: VBStore.h:54
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Cube< casacore::Complex > & correctedCube()
Definition: VBStore.h:53
void reference(const VBStore &other)
Definition: VBStore.h:58
casacore::Int nDataChan_p
Definition: VBStore.h:91
casacore::Cube< casacore::Complex > visCube_p
Definition: VBStore.h:96
const VisBuffer2 & vb()
Definition: VBStore.h:55
casacore::Cube< casacore::Bool > flagCube_p
Definition: VBStore.h:94
casacore::Int nRow()
Definition: VBStore.h:40
casacore::Int spwID()
Definition: VBStore.h:43
casacore::Matrix< casacore::Double > & uvw()
Definition: VBStore.h:46
casacore::Cube< casacore::Bool > & flagCube()
Definition: VBStore.h:48
casacore::Matrix< casacore::uInt > TRCYi
Definition: VBStore.h:106
casacore::Int nDataPol_p
Definition: VBStore.h:91
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
casacore::Bool accumCFs_p
Definition: VBStore.h:105
casacore::Int beginRow()
Definition: VBStore.h:41
casacore::Int endChan_p
Definition: VBStore.h:91
casacore::Vector< casacore::Int > antenna1_p
Definition: VBStore.h:101
casacore::Int spwID_p
Definition: VBStore.h:91
casacore::Cube< casacore::Complex > correctedCube_p
Definition: VBStore.h:96
casacore::Bool dopsf()
Definition: VBStore.h:44
casacore::Matrix< casacore::Float > imagingWeight_p
Definition: VBStore.h:95
virtual void reference(const Array< T > &other)
Create a reference to &quot;other&quot;, which must be of dimension one.
casacore::Int beginRow_p
Definition: VBStore.h:91
casacore::Vector< casacore::Int > antenna2_p
Definition: VBStore.h:101
casacore::Double imRefFreq()
Definition: VBStore.h:56
casacore::Bool conjBeams_p
Definition: VBStore.h:98
casacore::Vector< casacore::Bool > rowFlag_p
Definition: VBStore.h:93