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_TRANSFORM2_EVLAAPERTURE_H
30 #define SYNTHESIS_TRANSFORM2_EVLAAPERTURE_H
31 
34 //#include <synthesis/MeasurementComponents/ATerm.h>
37 //
38 //---------------------------------------------------------------------
39 //
40 namespace casacore{
41 
42  template<class T> class ImageInterface;
43  template<class T> class Matrix;
44 }
45 
46 namespace casa { //# NAMESPACE CASA - BEGIN
47 
48  class VisBuffer;
49  // class EVLAAperture : public ATerm
50  namespace refim{
51  class EVLAAperture : public AzElAperture
52  {
53  public:
54  // EVLAAperture(): ATerm(), polMap_p(), feedStokes_p() {};
57  EVLAAperture& operator=(const EVLAAperture& other);
58  //
59  // Overload these functions. They are pure virtual in the base class (ATerm).
60  //
61  virtual casacore::String name() {return casacore::String("EVLA Aperture");};
62 
64  const VisBuffer2& vb,
65  casacore::Bool doSquint, casacore::Int& bandID, casacore::Double freqVal);
66 
67  virtual void applySky(casacore::ImageInterface<casacore::Float>& outputImages,
68  const VisBuffer2& vb,
69  const casacore::Bool doSquint=true,
70  const casacore::Int& cfKey=0,
71  const casacore::Int& muellerTerm=0,
72  const casacore::Double freqVal=-1.0);
73  virtual void applySky(casacore::ImageInterface<casacore::Complex>& outputImages,
74  const VisBuffer2& vb,
75  const casacore::Bool doSquint=true,
76  const casacore::Int& cfKey=0,
77  const casacore::Int& muellerTerm=0,
78  const casacore::Double freqVal=-1.0);
80  const casacore::Double& pa,
81  const casacore::Bool doSquint,
82  const casacore::Int& cfKey,
83  const casacore::Int& muellerTerm,
84  const casacore::Double freqVal=-1.0);
85 
86  void cacheVBInfo(const casacore::String& telescopeName, const casacore::Float& diameter);
87  void cacheVBInfo(const VisBuffer2& vb);
88  casacore::Int getBandID(const casacore::Double& freq, const casacore::String& telescopeName, const casacore::String& bandName="");
89 
91  {casacore::Vector<casacore::Int> tmp; tmp.resize(vb.nRows()); tmp=0; nUnique=1; return tmp;}
92 
93  virtual void getPolMap(casacore::Vector<casacore::Int>& polMap) {polMap.resize(0);polMap=polMap_p;};
94 
95  // For this class, these will be served from the base classs (ATerm.h)
96  // virtual casacore::Int getConvSize() {return CONVSIZE;};
97  // virtual casacore::Int getOversampling() {return OVERSAMPLING;}
98  // virtual casacore::Float getConvWeightSizeFactor() {return CONVWTSIZEFACTOR;};
99  // virtual casacore::Float getSupportThreshold() {return THRESHOLD;};
100 
101  protected:
106  const casacore::Int& convSize,
107  const casacore::Int& convSampling,
108  const casacore::CoordinateSystem& skyCoord,
109  const casacore::Int& skyNx, const casacore::Int& skyNy,
110  casacore::CoordinateSystem& feedCoord);
111 
112  private:
115  };
116 };
117 };
118 #endif
void cacheVBInfo(const casacore::String &telescopeName, const casacore::Float &diameter)
int Int
Definition: aipstype.h:50
virtual void getPolMap(casacore::Vector< casacore::Int > &polMap)
Definition: EVLAAperture.h:93
virtual casacore::Vector< casacore::Int > vbRow2CFKeyMap(const VisBuffer2 &vb, casacore::Int &nUnique)
Not sure if the following method is requried.
Definition: EVLAAperture.h:90
casacore::Bool findSupport(casacore::Array< casacore::Complex > &func, casacore::Float &threshold, casacore::Int &origin, casacore::Int &R)
int getVisParams(const VisBuffer2 &vb, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
For this class, these will be served from the base classs (ATerm.h) virtual casacore::Int getConvSize...
virtual void applySky(casacore::ImageInterface< casacore::Float > &outputImages, const VisBuffer2 &vb, const casacore::Bool doSquint=true, const casacore::Int &cfKey=0, const casacore::Int &muellerTerm=0, const casacore::Double freqVal=-1.0)
casacore::Vector< casacore::Int > feedStokes_p
Definition: EVLAAperture.h:114
virtual casacore::String name()
Overload these functions.
Definition: EVLAAperture.h:61
casacore::Int getBandID(const casacore::Double &freq, const casacore::String &telescopeName, const casacore::String &bandName="")
casacore::Int getVLABandID(casacore::Double &freq, casacore::String &telescopeName, const casacore::CoordinateSystem &skyCoord=casacore::CoordinateSystem())
EVLAAperture & operator=(const EVLAAperture &other)
EVLAAperture()
EVLAAperture(): ATerm(), polMap_p(), feedStokes_p() {};.
Definition: EVLAAperture.h:55
casacore::Vector< casacore::Int > polMap_p
Definition: EVLAAperture.h:113
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
double Double
Definition: aipstype.h:55
virtual casacore::Int nRows() const =0
Returns the number of rows in this VisBuffer.
casacore::Int makePBPolnCoords(const VisBuffer2 &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.
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 //.
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void resize(size_t len, Bool copyValues=False)
Definition: Vector.h:167
virtual void makeFullJones(casacore::ImageInterface< casacore::Complex > &pbImage, const VisBuffer2 &vb, casacore::Bool doSquint, casacore::Int &bandID, casacore::Double freqVal)
Interconvert pixel and world coordinates.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42