casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EVLAAperture.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //# EVLAAperture.h: Definition of the EVLAAperture class
3 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
4 //# Associated Universities, Inc. Washington DC, USA.
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 addressed 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 //# $Id$
28 //
29 #ifndef SYNTHESIS_EVLAAPERTURE_H
30 #define SYNTHESIS_EVLAAPERTURE_H
31 
33 //#include <synthesis/MeasurementComponents/ATerm.h>
36 //
37 //---------------------------------------------------------------------
38 //
39 namespace casacore{
40 
41  template<class T> class ImageInterface;
42  template<class T> class Matrix;
43 }
44 
45 namespace casa { //# NAMESPACE CASA - BEGIN
46  class VisBuffer;
47  // class EVLAAperture : public ATerm
48  class EVLAAperture : public AzElAperture
49  {
50  public:
51  // EVLAAperture(): ATerm(), polMap_p(), feedStokes_p() {};
54  EVLAAperture& operator=(const EVLAAperture& other);
55  //
56  // Overload these functions. They are pure virtual in the base class (ATerm).
57  //
58  virtual casacore::String name() {return casacore::String("EVLA Aperture");};
59 
61  const VisBuffer& vb,
62  casacore::Bool doSquint, casacore::Int& bandID, casacore::Double freqVal);
63 
64  virtual void applySky(casacore::ImageInterface<casacore::Float>& outputImages,
65  const VisBuffer& vb,
66  const casacore::Bool doSquint=true,
67  const casacore::Int& cfKey=0,
68  const casacore::Int& muellerTerm=0,
69  const casacore::Double freqVal=-1.0);
70  virtual void applySky(casacore::ImageInterface<casacore::Complex>& outputImages,
71  const VisBuffer& vb,
72  const casacore::Bool doSquint=true,
73  const casacore::Int& cfKey=0,
74  const casacore::Int& muellerTerm=0,
75  const casacore::Double freqVal=-1.0);
77  const casacore::Double& pa,
78  const casacore::Bool doSquint,
79  const casacore::Int& cfKey,
80  const casacore::Int& muellerTerm,
81  const casacore::Double freqVal=-1.0);
82 
83  void cacheVBInfo(const casacore::String& telescopeName, const casacore::Float& diameter);
84  void cacheVBInfo(const VisBuffer& vb);
85  casacore::Int getBandID(const casacore::Double& freq, const casacore::String& telescopeName,
86  const casacore::String& bandName);
87 
89  {casacore::Vector<casacore::Int> tmp; tmp.resize(vb.nRow()); tmp=0; nUnique=1; return tmp;}
90 
91  virtual void getPolMap(casacore::Vector<casacore::Int>& polMap) {polMap.resize(0);polMap=polMap_p;};
92 
93  // For this class, these will be served from the base classs (ATerm.h)
94  // virtual casacore::Int getConvSize() {return CONVSIZE;};
95  // virtual casacore::Int getOversampling() {return OVERSAMPLING;}
96  // virtual casacore::Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;};
97  // virtual casacore::Float getSupportThreshold() {return THRESHOLD;};
98 
99  protected:
104  const casacore::Int& convSize,
105  const casacore::Int& convSampling,
106  const casacore::CoordinateSystem& skyCoord,
107  const casacore::Int& skyNx, const casacore::Int& skyNy,
108  casacore::CoordinateSystem& feedCoord);
109 
110  private:
113  };
114 };
115 #endif
int Int
Definition: aipstype.h:50
EVLAAperture & operator=(const EVLAAperture &other)
casacore::Int getBandID(const casacore::Double &freq, const casacore::String &telescopeName, const casacore::String &bandName)
void cacheVBInfo(const casacore::String &telescopeName, const casacore::Float &diameter)
virtual casacore::Vector< casacore::Int > vbRow2CFKeyMap(const VisBuffer &vb, casacore::Int &nUnique)
Not sure if the following method is requried.
Definition: EVLAAperture.h:88
class EVLAAperture : public ATerm
Definition: EVLAAperture.h:48
casacore::Vector< casacore::Int > feedStokes_p
Definition: EVLAAperture.h:112
virtual casacore::Int & nRow()
virtual casacore::Int &amp; nCat() { return nCatOK_p ? nCat_p : fillnCat(); } virtual casacore::Int nCat(...
Definition: VisBuffer.h:245
A 2-D Specialization of the Array class.
virtual void makeFullJones(casacore::ImageInterface< casacore::Complex > &pbImage, const VisBuffer &vb, casacore::Bool doSquint, casacore::Int &bandID, casacore::Double freqVal)
int getVisParams(const VisBuffer &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
For this class, these will be served from the base classs (ATerm.h) virtual casacore::Int getConvSize...
casacore::Bool findSupport(casacore::Array< casacore::Complex > &func, casacore::Float &threshold, casacore::Int &origin, casacore::Int &R)
casacore::Vector< casacore::Int > polMap_p
Definition: EVLAAperture.h:111
virtual void applySky(casacore::ImageInterface< casacore::Float > &outputImages, const VisBuffer &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Int &muellerTerm=0, const casacore::Double freqVal=-1.0)
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
A base class for astronomical images.
double Double
Definition: aipstype.h:55
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
virtual Origin origin() const =0
ABSTRACT METHODS //.
EVLAAperture()
EVLAAperture(): ATerm(), polMap_p(), feedStokes_p() {};.
Definition: EVLAAperture.h:52
casacore::Int makePBPolnCoords(const VisBuffer &vb, const casacore::Int &convSize, const casacore::Int &convSampling, const casacore::CoordinateSystem &skyCoord, const casacore::Int &skyNx, const casacore::Int &skyNy, casacore::CoordinateSystem &feedCoord)
Not sure if the following method is requried.
virtual void getPolMap(casacore::Vector< casacore::Int > &polMap)
Definition: EVLAAperture.h:91
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
casacore::Int getVLABandID(casacore::Double &freq, casacore::String &telescopeName, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
void resize(size_t len, Bool copyValues=False)
Definition: Vector.h:167
virtual casacore::String name()
Overload these functions.
Definition: EVLAAperture.h:58
Interconvert pixel and world coordinates.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42