casa
$Rev:20696$
|
00001 //# PBMath1DAiry.h: Definitions of 1-D Airy PBMath objects 00002 //# Copyright (C) 1996,1997,1998,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 SYNTHESIS_PBMATH1DAIRY_H 00030 #define SYNTHESIS_PBMATH1DAIRY_H 00031 00032 #include <casa/aips.h> 00033 #include <synthesis/TransformMachines/PBMath1D.h> 00034 #include <measures/Measures.h> 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 //#forward 00039 00040 // <summary> 00041 // PBMath1DAiry is a 1-D Airy Disk voltage pattern & Primary Beam 00042 // </summary> 00043 00044 // <use visibility=export> 00045 00046 // <reviewed reviewer="" date="" tests="" demos=""> 00047 00048 // <prerequisite> 00049 // <li> <linkto class="PBMathInterface">PBMathInterface</linkto> class 00050 // <li> <linkto class="PBMath1D">PBMath1D</linkto> class 00051 // </prerequisite> 00052 // 00053 // <etymology> 00054 // PBMath1DAiry: derived from PBMath1D, implements an Airy pattern PB and VP 00055 // </etymology> 00056 // 00057 // <synopsis> 00058 // See PBMath1D for a general synopsis of the 1D PB types. 00059 // 00060 // For an unblocked dish: 00061 // VP(x) = 2 * j1(x)/x 00062 // 00063 // For blockage: 00064 // areaRatio = (dish/block)^2; 00065 // lengthRat = (dish/block); 00066 // VP(x) = ( areaRatio* 2 * j1(x)/x - 2 j1(x*lengthRat)/(x*lengthRat) ) / (areaRatio - 1); 00067 // </synopsis> 00068 // 00069 // 00070 // <example> 00071 // <srcblock> 00072 // PBMath1DAiry airyPB( Quantity(24.5,"m"), Quantity(2.5,"m"), 00073 // Quantity(2*0.8564,"deg"), Quantity(1.0,"GHz") ); 00074 // airyPB.applyPB( inImage, outImage, pointingDir); 00075 // </srcblock> 00076 // </example> 00077 // 00078 // <motivation> 00079 // All of the 1-D PB types have everything in common except for the 00080 // details of their parameterization. This lightweight class 00081 // deals with those differences: construction, filling the PBArray 00082 // from construction parameters, and flushing to disk. 00083 // </motivation> 00084 // 00085 // <todo asof="98/10/21"> 00086 // <li> constructor from a MS beam subtable 00087 // <li> flush to MS beam subtable 00088 // </todo> 00089 00090 00091 class PBMath1DAiry : public PBMath1D { 00092 public: 00093 00094 PBMath1DAiry(); 00095 00096 // Instantiation from arguments; 00097 // referenceFreq is used to scale maximumradius. 00098 // default = no squint 00099 // squint is the offset from pointing center if the Stokes R beam 00100 // useSymmetricBeam forces a fit to the squinted beam 00101 PBMath1DAiry(Quantity dishDiam, Quantity blockedDiam, 00102 Quantity maxRad, Quantity refFreq, 00103 BeamSquint squint=BeamSquint(MDirection(Quantity(0.0, "deg"), 00104 Quantity(0.0, "deg"), 00105 MDirection::Ref(MDirection::AZEL)), 00106 Quantity(1.0, "GHz")), 00107 Bool useSymmetricBeam=False); 00108 00109 // Instantiation from a row in the Beam subTable 00110 //PBMath1DAiry(const Table& BeamSubTable, Int row, 00111 // Bool useSymmetricBeam=False); 00112 00113 // Copy constructor 00114 // PBMath1DAiry(const PBMath1DAiry& other); 00115 00116 // Assignment operator, by reference 00117 PBMath1DAiry& operator=(const PBMath1DAiry& other); 00118 00119 // Clone the object 00120 // CountedPtr<PBMathInterface> clone(); 00121 00122 //destructor 00123 ~PBMath1DAiry(); 00124 00125 // Get the type of PB this is 00126 PBMathInterface::PBClass whichPBClass() { return PBMathInterface::AIRY; } 00127 00128 // Flush the construction parameters to disk 00129 // Bool flushToTable(Table& beamSubTable, Int iRow); 00130 00131 // Summarize the construction data for this primary beam 00132 void summary(Int nValues=0); 00133 00134 protected: 00135 00136 // Fill in vp_p array from construction parameters 00137 void fillPBArray(); 00138 00139 private: 00140 00141 Quantity dishDiam_p; 00142 Quantity blockedDiam_p; 00143 00144 }; 00145 00146 00147 } //# NAMESPACE CASA - END 00148 00149 #endif