casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CalInterpolator.h
Go to the documentation of this file.
00001 //# CalInterpolator.h: a class to interpolate calibration information
00002 //# Copyright (C) 1996,1997,1998,2000,2001,2002,2003
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 adressed 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 //#
00027 //# $Id$
00028 
00029 #ifndef CALIBRATION_CALINTERPOLATOR_H
00030 #define CALIBRATION_CALINTERPOLATOR_H
00031 
00032 #include <casa/aips.h>
00033 #include <casa/Arrays/Matrix.h>
00034 #include <synthesis/MSVis/VisBuffer.h>
00035 #include <synthesis/CalTables/CalInterpolation.h>
00036 
00037 namespace casa { //# NAMESPACE CASA - BEGIN
00038 
00039 // <summary> 
00040 // CalInterpolator: a class to interpolate calibration information
00041 // </summary>
00042 
00043 // <use visibility=export>
00044 
00045 // <reviewed reviewer="" date="" tests="" demos="">
00046 
00047 // <prerequisite>
00048 //   <li> <linkto class="CalTable">CalTable</linkto> module
00049 //   <li> <linkto class="CalInterpolation">CalInterpolation</linkto> module
00050 //   <li> <linkto class="VisBuffer">VisBuffer</linkto> module
00051 // </prerequisite>
00052 //
00053 // <etymology>
00054 // From "calibration" and "interpolation".
00055 // </etymology>
00056 //
00057 // <synopsis>
00058 // This base class defines the interface for calibration interpolation.
00059 // Specializations for calibration table and calibration model interpolation
00060 // are provided through inheritance. Calibration table solutions may be
00061 // discretely sampled values for parametrized solutions and interpolation
00062 // of both is supported through inherited sub-types. Calibration models
00063 // may be analytic (e.g. parallactic angle PJones) or empirical based on
00064 // global or other data not stored in calibration tables (e.g. empirical
00065 // ionosphere models).
00066 // </synopsis>
00067 //
00068 // <example>
00069 // <srcblock>
00070 // </srcblock>
00071 // </example>
00072 //
00073 // <motivation>
00074 // Define the base class interface for different calibration interpolation
00075 // types.
00076 // </motivation>
00077 //
00078 // <todo asof="02/07/01">
00079 // (i) None known.
00080 // </todo>
00081 
00082 class CalInterpolator
00083 {
00084  public:
00085   // Set the visibility buffer on which the calibration interpolator acts
00086   virtual void setVisBuffer (VisBuffer& vb) {vb_p = &vb; return;};
00087 
00088   // Compute the interpolated calibration correction for a given 
00089   // visibility buffer row.
00090   virtual Bool getVal (const Int& /*row*/, Matrix<Complex>& /*jonesMatrix*/){return False;};
00091 
00092  protected:
00093   // Public construction is prohibited.
00094   // Copy constructor and assignment operator are implicit.
00095   // Construct from a set of calibration interpolation parameters.
00096   CalInterpolator (const CalInterpolation& calInterp);
00097  
00098   // Desctructor
00099   virtual ~CalInterpolator() {};
00100 
00101   // Reference to the calibration interpolation parameters
00102   const CalInterpolation& calInterp_p;
00103 
00104   // Pointer to the current visibility buffer
00105   VisBuffer* vb_p;
00106 };
00107 
00108 
00109 } //# NAMESPACE CASA - END
00110 
00111 #endif
00112    
00113   
00114 
00115 
00116