casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSCleanImageSkyModel.h
Go to the documentation of this file.
1 //# MSCleanImageSkyModel.h: Definition for MSCleanImageSkyModel
2 //# Copyright (C) 1996,1997,1998,1999,2000
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_MSCLEANIMAGESKYMODEL_H
30 #define SYNTHESIS_MSCLEANIMAGESKYMODEL_H
31 
34 
35 namespace casa { //# NAMESPACE CASA - BEGIN
36 
37 //forward
38 class SkyEquation;
39 
40 // <summary>
41 // casacore::MS Clean Image Sky Model: Image Sky Model implementing the casacore::MS Clean algorithm
42 // </summary>
43 
44 // <use visibility=export>
45 
46 // <reviewed reviewer="" date="" tests="" demos="">
47 
48 // <prerequisite>
49 // <li> <linkto class=casacore::LatticeCleaner>LatticeCleaner</linkto> module
50 // <li> <linkto class=ImageSkyModel>ImageSkyModel</linkto> module
51 // <li> <linkto class=LinearModel>LinearModel</linkto> module
52 // </prerequisite>
53 //
54 // <etymology>
55 // MSCleanImageSkyModel implements the casacore::MS Clean algorithm.
56 // It is derived from <linkto class=SkyModel>SkyModel</linkto>.
57 // </etymology>
58 //
59 // <synopsis>
60 // The casacore::MS Clean is the Multi-Scale clean, collecting flux
61 // in several different scale size Gaussian components.
62 // It is highly effective in imaging extended structure
63 // and results in residuals with excellent statistics.
64 //
65 // The casacore::MS Clean is implemented using the
66 // <linkto class=casacore::LatticeCleaner>LatticeCleaner</linkto>
67 // class.
68 //
69 // Masking is optionally performed using a mask image: only points
70 // where the mask is non-zero are searched for Gaussian components.
71 // This can cause some difficulty, as the different Gaussian scale
72 // sizes will extend beyond the mask by different amounts.
73 // If no mask is specified
74 // all points in the inner quarter of the image are cleaned.
75 // </synopsis>
76 //
77 // <example>
78 // See the example for <linkto class=SkyModel>SkyModel</linkto>.
79 // </example>
80 //
81 // <motivation>
82 // </motivation>
83 //
84 // <todo asof="99/04/07">
85 // <ul> Improve the masking.
86 // </todo>
87 
89 public:
90 
91  // Create a MSCleanImageSkyModel with nScales, we figure out what they are
92  MSCleanImageSkyModel(const casacore::Int nscales, const casacore::Int stoplargenegatives=2,
93  const casacore::Int stoppointmode=-1, const casacore::Float smallScaleBias=0.6);
94 
95  // Create a MSCleanImageSkyModel, you provide the scale sizes, IN PIXELS
96  // for example: casacore::Vector<casacore::Float> scales(4); scales(0) = 0.0; scales(1) = 3.0;
97  // scales(2) = 10.0; scales(3) = 30.0;
98  MSCleanImageSkyModel(const casacore::Vector<casacore::Float>& useScaleSize, const casacore::Int stoplargenegatives=2,
99  const casacore::Int stoppointmode=-1, const casacore::Float smallScaleBias=0.6);
100 
101  // destructor
103 
104  // Solve for this SkyModel
105  virtual casacore::Bool solve (SkyEquation& me);
106 
107 private:
110 
113  // parameter to stop the cycle (for the first N cycles) if you get a
114  // negative on the largest scale;
115  // To disable, use < 0
117 
118  // parameter which stops the cycle if you hit the smallest scale this many
119  // consecutive times; if < 0, don't stop for this
122 
123  //casacore::LatticeCleanProgress *progress_p;
124 
125 };
126 
127 
128 } //# NAMESPACE CASA - END
129 
130 #endif
131 
132 
int Int
Definition: aipstype.h:50
virtual casacore::Bool solve(SkyEquation &me)
Solve for this SkyModel.
casacore::Int stopLargeNegatives_p
parameter to stop the cycle (for the first N cycles) if you get a negative on the largest scale; To d...
casacore::Int stopPointMode_p
parameter which stops the cycle if you hit the smallest scale this many consecutive times; if &lt; 0...
MSCleanImageSkyModel(const casacore::Int nscales, const casacore::Int stoplargenegatives=2, const casacore::Int stoppointmode=-1, const casacore::Float smallScaleBias=0.6)
Create a MSCleanImageSkyModel with nScales, we figure out what they are.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Vector< casacore::Float > userScaleSizes_p
float Float
Definition: aipstype.h:54
casacore::MS Clean Image Sky Model: Image Sky Model implementing the casacore::MS Clean algorithm ...
Image Sky Model: Image-based Model for the Sky Brightness.
~MSCleanImageSkyModel()
destructor