casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vi2ObservedVisDataProvider.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002,2003,2015
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 //
27 // Observed visibilities data provider template
28 //
29 #ifndef MSVIS_STATISTICS_VI2_OBSERVED_VIS_DATA_PROVIDER_H
30 #define MSVIS_STATISTICS_VI2_OBSERVED_VIS_DATA_PROVIDER_H
31 
32 #include <casacore/casa/aips.h>
37 
38 namespace casa {
39 
40 //
41 // casacore::Template class for observed visibilities data provider. "DataIterator"
42 // template parameter is used to select a transformation for the visibilities
43 // (amplitude using Vi2StatsAmplitudeIterator, phase using
44 // Vi2StatsPhaseIterator, etc).
45 //
46 template <class DataIterator>
48  : public Vi2SigmasCubeDataProvider<DataIterator> {
49 
50 public:
53  const std::set<casacore::MSMainEnums::PredefinedColumns> &mergedColumns,
56  : Vi2SigmasCubeDataProvider<DataIterator>(
57  vi2,
58  mergedColumns,
60  omit_flagged_data,
61  use_data_weights) {}
62 
65  vi2->getVisBuffer()->visCube();
66  }
67 };
68 
69 } // namespace casa
70 
71 #endif // MSVIS_STATISTICS_VI2_OBSERVED_VIS_DATA_PROVIDER_H
const casacore::Bool omit_flagged_data
Vi2ObservedVisDataProvider(vi::VisibilityIterator2 *vi2, const std::set< casacore::MSMainEnums::PredefinedColumns > &mergedColumns, casacore::Bool omit_flagged_data, casacore::Bool use_data_weights)
VisibilityIterator2 iterates through one or more readonly MeasurementSets.
const casacore::Bool use_data_weights
const casacore::Cube< casacore::Complex > & dataArray()
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
std::unordered_set< string > mergedColumns
casacore::StatsDataProvider template class backed by VisibilityIterator2 instances.
std::unique_ptr< vi::VisibilityIterator2 > vi2
casacore::Template class for observed visibilities data provider.