casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ALMACalcIlluminationConvFunc.h
Go to the documentation of this file.
1 //# ALMAIlluminationConvFunc.h: Definition for ALMAIlluminationConvFunc
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002
3 //# Associated Universities, Inc. Washington DC, USA.
4 //# Copyright by ESO (in the framework of the ALMA collaboration)
5 //#
6 //# This library is free software; you can redistribute it and/or modify it
7 //# under the terms of the GNU Library General Public License as published by
8 //# the Free Software Foundation; either version 2 of the License, or (at your
9 //# option) any later version.
10 //#
11 //# This library is distributed in the hope that it will be useful, but WITHOUT
12 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 //# License for more details.
15 //#
16 //# You should have received a copy of the GNU Library General Public License
17 //# along with this library; if not, write to the Free Software Foundation,
18 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19 //#
20 //# Correspondence concerning AIPS++ should be adressed as follows:
21 //# Internet email: aips2-request@nrao.edu.
22 //# Postal address: AIPS++ Project Office
23 //# National Radio Astronomy Observatory
24 //# 520 Edgemont Road
25 //# Charlottesville, VA 22903-2475 USA
26 //#
27 //#
28 //# $Id$
29 
30 #ifndef SYNTHESIS_ALMACALCILLUMINATIONCONVFUNC_H
31 #define SYNTHESIS_ALMACALCILLUMINATIONCONVFUNC_H
32 
39 #include <casa/Exceptions.h>
40 #include <msvis/MSVis/VisBuffer.h>
41 #include <casa/sstream.h>
43 namespace casa{
44 
46  {
47  public:
48 
51  {pbRead_p=false;};
53  {delete ap.aperture;};
54 
55  void setBandID(casacore::Int /*bandID*/) {/*ap.band=(ALMABeamCalcBandCode)bandID;*/}
56 
57  void setAntRayPath(const casacore::String& antRayPath) {otherAntRayPath_p = antRayPath;}
58 
59  void loadFromImage(casacore::String &fileName);
63  void storePB(casacore::String& fileName);
64 
66 
70  casacore::IPosition& skyShape,
72  const VisBuffer& vb,
73  casacore::Bool doSquint=true,casacore::Int bandID=-1);
75  casacore::IPosition& skyShape,
77  const VisBuffer &vb,
79  casacore::Bool doSquint, casacore::Int bandID);
80 
82  casacore::IPosition& skyShape,
84  const casacore::String& telescope,
85  const casacore::MVFrequency& freqQ,
86  casacore::Float pa = 0.,
87  casacore::Bool doSquint=true,
88  casacore::Int bandID=-1);
89 
91  const VisBuffer& vb, casacore::Bool doSquint=false, casacore::Int cfKey=0);
92 
94  const VisBuffer& vb, casacore::Bool doSquint=true, casacore::Int cfKey=0);
95 
97  const casacore::String& telescope, const casacore::MEpoch& obsTime,
98  const casacore::String& antType0, const casacore::String& antType1,
99  const casacore::MVFrequency& freqQ, casacore::Double pa=0.,
100  casacore::Bool doSquint=false);
101 
103  const casacore::String& telescope, const casacore::MEpoch& obsTime,
104  const casacore::String& antType0, const casacore::String& antType1,
105  const casacore::MVFrequency& freqQ, casacore::Double pa=0.,
106  casacore::Bool doSquint=true);
107 
109  const casacore::String& telescope, const casacore::MEpoch& obsTime,
110  const casacore::String& antType0, const casacore::String& antType1,
111  const casacore::MVFrequency& freqQ, casacore::Double pa=0.,
112  casacore::Bool doSquint=true);
113 
115 
116  // casacore::Int getALMABandId(const casacore::Double& freq);
117  virtual void prepareConvFunction(const VisBuffer& /*vb*/, CFStore& /*cfs*/){};
118 
119 
120 
121  private:
122 
126 
132 
134 
136  };
137 
138 };
139 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
void setAntRayPath(const casacore::String &antRayPath)
casacore::Vector< casacore::Double > resolution
int Int
Definition: aipstype.h:50
Internal value for MFrequency.
Definition: MVFrequency.h:97
casacore::TempImage< casacore::Complex > convFunc_p
void loadFromImage(casacore::String &fileName)
void fillVP(casacore::ImageInterface< casacore::Complex > &inImg, casacore::ImageInterface< casacore::Complex > &outImg, casacore::Bool Square=false)
A Measure: instant in time.
Definition: MEpoch.h:104
casacore::CoordinateSystem makeUVCoords(casacore::CoordinateSystem &imageCoordSys, casacore::IPosition &shape, casacore::Double refFreq=-1.0)
void getIdealConvFunc(casacore::Array< casacore::Complex > &buf)
void applyPB(casacore::ImageInterface< casacore::Float > &pbImage, const VisBuffer &vb, casacore::Bool doSquint=false, casacore::Int cfKey=0)
virtual void prepareConvFunction(const VisBuffer &, CFStore &)
casacore::Int getALMABandId(const casacore::Double&amp; freq);
void skyMuller(casacore::ImageInterface< casacore::Complex > &skyJones)
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
double Double
Definition: aipstype.h:55
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::TempImage< casacore::Complex > * aperture
Definition: BeamCalc.h:71
float Float
Definition: aipstype.h:54
void regridAperture(casacore::CoordinateSystem &skyCS, casacore::IPosition &skyShape, casacore::TempImage< casacore::Complex > &uvGrid, const VisBuffer &vb, casacore::Bool doSquint=true, casacore::Int bandID=-1)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
Definition: ExprNode.h:1944
void fillPB(casacore::ImageInterface< casacore::Complex > &inImg, casacore::ImageInterface< casacore::Float > &outImg, casacore::Bool Square=false)
void applyVP(casacore::ImageInterface< casacore::Complex > &pbImage, const casacore::String &telescope, const casacore::MEpoch &obsTime, const casacore::String &antType0, const casacore::String &antType1, const casacore::MVFrequency &freqQ, casacore::Double pa=0., casacore::Bool doSquint=true)
String: the storage and methods of handling collections of characters.
Definition: String.h:223
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
void storePB(casacore::String &fileName)
Interconvert pixel and world coordinates.