casa
$Rev:20696$
|
00001 //# SimACohCalc.h: Definition for Simulated additive errors, calculated from obs. parms 00002 //# Copyright (C) 1996,1997,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 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 SYNTHESIS_SIMACOHCALC_H 00030 #define SYNTHESIS_SIMACOHCALC_H 00031 00032 #include <casa/aips.h> 00033 #include <casa/BasicMath/Random.h> 00034 #include <synthesis/MeasurementComponents/ACoh.h> 00035 #include <casa/Quanta/Quantum.h> 00036 00037 namespace casa { //# NAMESPACE CASA - BEGIN 00038 00039 // <summary> 00040 // SimACohCalc: Model additive noise errors for the VisEquation 00041 // </summary> 00042 00043 // <use visibility=export> 00044 00045 // <reviewed reviewer="" date="" tests="" demos=""> 00046 00047 // <prerequisite> 00048 // <li> <linkto module="MeasurementComponents">MeasurementComponents</linkto> module 00049 // <li> <linkto class="VisSet">VisSet</linkto> class 00050 // <li> <linkto class="VisEquation">VisEquation</linkto> class 00051 // <li> <linkto class="SimACoh">SimACoh</linkto> class 00052 // </prerequisite> 00053 // 00054 // <etymology> 00055 // SimACohCalc describes random additive errors to be used in 00056 // the <linkto class="VisEquation">VisEquation</linkto>, calculated from parameters 00057 // such as bandwidth, system temperature, integration time, dish diameter, and efficiencies. 00058 // </etymology> 00059 // 00060 // <synopsis> 00061 // 00062 // See <linkto class="VisEquation">VisEquation</linkto> for definition of the 00063 // Visibility Measurement Equation. See <linkto class="ACoh">ACoh</linkto> 00064 // for how SimACohCalc is to be used. 00065 // </synopsis> 00066 // 00067 // <motivation> 00068 // The properties of an additive component must be described 00069 // for the <linkto class="VisEquation">VisEquation</linkto>. 00070 // </motivation> 00071 // 00072 // <todo asof="97/10/01"> 00073 // </todo> 00074 00075 class SimACohCalc : public ACoh 00076 { 00077 public: 00078 // Construct from VisSet, seed and rms of additive noise (normal dist.) 00079 // NOTE: rms is for the tau = 0.0 case, and is augmented as 00080 // appropriate given tau, tatmos, trx (ie, all NON-atmospheric noise 00081 // contributions), and airmass= 1/sin(ELEVATION). 00082 // If tau = 0.0, this defaults to the SimACoh case. 00083 SimACohCalc(const Int seed=1, 00084 const Float antefficiency=0.80, 00085 const Float correfficiency=0.85, 00086 const Float spillefficiency=0.85, 00087 const Float tau=0.0, 00088 const Quantity& trx=50, 00089 const Quantity& tatmos=250, 00090 const Quantity& tcmb=2.7); 00091 00092 // virtual destructor 00093 virtual ~SimACohCalc(); 00094 00095 // Apply additive error (Inverse is minus) 00096 // <group> 00097 virtual VisBuffer& apply(VisBuffer& vb); 00098 virtual VisBuffer& applyInv(VisBuffer& vb); 00099 // </group> 00100 private: 00101 Bool solve(VisEquation& /*ve*/) {return True;} 00102 SimACohCalc(); 00103 00104 MLCG rndGen_p; 00105 Normal noiseDist_p; 00106 Float antefficiency_p; 00107 Float correfficiency_p; 00108 Float spillefficiency_p; 00109 Float tau_p; 00110 Quantity trx_p; 00111 Quantity tatmos_p; 00112 Quantity tcmb_p; 00113 00114 00115 00116 }; 00117 00118 00119 } //# NAMESPACE CASA - END 00120 00121 #endif