casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ResidualAlgorithm.h
Go to the documentation of this file.
1 //# ResidualAlgorithm.h: Parallel residual image formation
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002
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_RESIDUALALGORITHM_H
29 #define SYNTHESIS_RESIDUALALGORITHM_H
30 
31 #include <casa/BasicSL/String.h>
34 #include <msvis/MSVis/VisSet.h>
35 #include <msvis/MSVis/VisSetUtil.h>
41 
42 namespace casa { //# NAMESPACE CASA - BEGIN
43 
44 // <summary> Parallel residual image formation </summary>
45 
46 // <use visibility=export>
47 
48 // <reviewed reviewer="" date="" tests="" demos="">
49 
50 // <prerequisite>
51 // <li> <linkto module="FTMachine">FTMachine</linkto> module
52 // <li> <linkto module="Applicator">Algorithm</linkto> module
53 // </prerequisite>
54 //
55 // <etymology>
56 // From "residual image" and "parallel algorithm"
57 // </etymology>
58 //
59 // <synopsis>
60 // This class is called by PSkyEquation to form residual image
61 // using parallelization within the Applicator/Algorithm framework
62 // </synopsis>
63 //
64 // <example>
65 // <srcblock>
66 
67 // </srcblock>
68 // </example>
69 //
70 // <motivation>
71 // Encapsulate the parallelized residual image formation
72 // </motivation>
73 //
74 // <todo asof="01/7/20">
75 // <li> Does not support time-variable SkyJones
76 // </todo>
77 
78 
79 class ResidualAlgorithm : public Algorithm {
80  public:
81  // Default constructor and destructor
84 
85  // Get the input data and parameters from the controller
86  void get();
87 
88  // Return the results to the controller
89  void put();
90 
91  // Return the name of the algorithm
93 
94  private:
95  // Private data
105 
106  // Form the residual image
107  void task();
108 
109  // Local utility functions
110  void initializePut(const VisBuffer& vb, casacore::Int model);
111  void putResidualVis(VisBuffer& vb, casacore::Int model);
112 
113 };
114 
115 
116 } //# NAMESPACE CASA - END
117 
118 #endif
casacore::TempImage< casacore::Float > psf_p
int Int
Definition: aipstype.h:50
void putResidualVis(VisBuffer &vb, casacore::Int model)
casacore::MeasurementSet * ms_p
Defines a computational unit for parallel processing.
Definition: Algorithm.h:89
Parallel residual image formation.
casacore::Int model_p
Private data.
casacore::String & name()
Return the name of the algorithm.
void task()
Form the residual image.
casacore::String msName_p
casacore::TempImage< casacore::Complex > * cImage_p
void put()
Return the results to the controller.
casacore::Matrix< casacore::Float > * weight_p
ResidualAlgorithm()
Default constructor and destructor.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
A Table intended to hold astronomical data (a set of Measurements).
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
casacore::String myName_p
void initializePut(const VisBuffer &vb, casacore::Int model)
Local utility functions.
defines interface for the Fourier Transform Machine
Definition: FTMachine.h:120