casa
$Rev:20696$
|
00001 //# ClarkCleanAlgorithm.h: parallel Clark CLEAN algorithm 00002 //# Copyright (C) 1996,1997,1998,1999,2000 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id$ 00027 00028 #ifndef SYNTHESIS_CLARKCLEANALGORITHM_H 00029 #define SYNTHESIS_CLARKCLEANALGORITHM_H 00030 00031 //# Includes 00032 #include <casa/BasicSL/String.h> 00033 #include <casa/Arrays/Array.h> 00034 #include <lattices/Lattices/PagedArray.h> 00035 #include <synthesis/Parallel/Algorithm.h> 00036 00037 namespace casa { //# NAMESPACE CASA - BEGIN 00038 00039 class ClarkCleanAlgorithm : public Algorithm { 00040 public: 00041 // Default constructor and destructor 00042 ClarkCleanAlgorithm(); 00043 ~ClarkCleanAlgorithm(); 00044 00045 // Get the input data and parameters from the controller 00046 void get(); 00047 00048 // Return the results to the controller 00049 void put(); 00050 00051 // Return the name of the algorithm 00052 String &name(); 00053 00054 private: 00055 // Local copies of the data and input parameters 00056 PagedArray<Float> *model_sl_p; 00057 Array<Float> residual_sl; 00058 Array<Float> psf_sf; 00059 Array<Float> mask; 00060 Float gain; 00061 Float threshold; 00062 Int numberIterations; 00063 Int chan; 00064 Int nchan; 00065 String myName; 00066 Int cache_p; 00067 00068 // Do the Clark CLEAN on the assigned data 00069 void task(); 00070 }; 00071 00072 00073 } //# NAMESPACE CASA - END 00074 00075 #endif 00076 00077 00078 00079 00080 00081