00001 //# PBMath1DEVLA.h: Definitions of 1-D Polynomial forEVLA 00002 //# Copyright (C) 2016 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 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 General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU 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 #ifndef SYNTHESIS_PBMATH1DEVLA_H 00029 #define SYNTHESIS_PBMATH1DEVLA_H 00030 #include <casa/aips.h> 00031 #include <synthesis/TransformMachines/PBMath1DPoly.h> 00032 #include <synthesis/TransformMachines/PBMath1D.h> 00033 namespace casa { //# NAMESPACE CASA - BEGIN 00034 class PBMath1DEVLA : public PBMath1D { 00035 00036 // <summary> 00037 // PBMath1DEVLA is an expansion 1-D Polynomial for a Primary Beam 00038 // to hold beams a per EVLA memo 195 00039 // https://library.nrao.edu/public/memos/evla/EVLAM_195.pdf 00040 // </summary> 00041 00042 00043 public: 00044 PBMath1DEVLA(); 00045 //freqToUse is not necessary ..at apply time 00046 // the right polynomial will be used for the frequency applicable 00047 // This value can be used for example to run summary 00048 PBMath1DEVLA(Quantity maxRad, Bool useSymmetricBeam=False, Double freqToUse=1.0e9); 00049 00050 virtual PBMathInterface::PBClass whichPBClass(); 00051 00052 protected: 00053 virtual void nearestVPArray(Double freq); 00054 virtual void fillPBArray(); 00055 private: 00056 std::map<Double, std::vector<Double> > coeffmap_p; 00057 std::map<String, Double> feedConf_p; 00058 void init(); 00059 CountedPtr<PBMath1DPoly> pbMathPoly_p; 00060 BeamSquint squint_p; 00061 Quantity maxRad_p; 00062 Bool useSymmetric_p; 00063 String feed(const Double freq, const Double freqCenter=0.0); 00064 00065 }; 00066 } //End namespace casa 00067 #endif