casa
$Rev:20696$
|
PBMath1DPoly is a 1-D Polynomial Expansion for a Primary Beam. More...
#include <PBMath1DPoly.h>
Public Member Functions | |
PBMath1DPoly () | |
PBMath1DPoly (const Vector< Double > &coeff, Quantity maxRad, Quantity refFreq, Bool isThisVP=False, BeamSquint squint=BeamSquint(MDirection(Quantity(0.0,"deg"), Quantity(0.0,"deg"), MDirection::Ref(MDirection::AZEL)), Quantity(1.0,"GHz")), Bool useSymmetricBeam=False) | |
Instantiation from arguments; default = no squint squint is the offset from pointing center if the Stokes R beam useSymmetricBeam forces a fit to the squinted beam. | |
PBMath1DPoly & | operator= (const PBMath1DPoly &other) |
Instantiation from a row in the Beam subTable PBMath1DPoly(const Table& BeamSubTable, Int row, Bool useSymmetricBeam=False);. | |
~PBMath1DPoly () | |
Clone the object CountedPtr<PBMathInterface> clone();. | |
PBMathInterface::PBClass | whichPBClass () |
Get the type of PB this is. | |
void | summary (Int nValues=0) |
Flush the construction parameters to disk Bool flushToTable(Table& beamSubTable, Int iRow);. | |
Protected Member Functions | |
void | fillPBArray () |
Fill in vp_p array from construction parameters. | |
Private Attributes | |
Vector< Double > | coeff_p |
PBMath1DPoly is a 1-D Polynomial Expansion for a Primary Beam.
Public interface
PBMath1DPoly: derived from PBMath1D, implements an Polynomial PB and VP
PBMath1DPoly: a voltage pattern expressed as a polynomial of even powers of x:
VP(x) = sum_i coeff_i * x ^{2i} out to maximumRadius (referenced to the reference frequency)
x is in arcminutes, referenced to the reference frequency
This move may make me a bit unpopular: since the PBMath1D constructors construct a Voltage Pattern, the coeficienct for a polynomial type must be in terms of the VP, not the PB. Hence, go back to the original PB data, take the square root, and fit the same type polynomial to the VP data.
All of the 1-D PB types have everything in common except for the details of their parameterization. This lightweight class deals with those differences: construction, filling the PBArray from construction parameters, and flushing to disk. VLA and ATNF PBs are tabulated in terms of polynimials.
Definition at line 93 of file PBMath1DPoly.h.
casa::PBMath1DPoly::PBMath1DPoly | ( | const Vector< Double > & | coeff, |
Quantity | maxRad, | ||
Quantity | refFreq, | ||
Bool | isThisVP = False , |
||
BeamSquint | squint = BeamSquint(MDirection(Quantity(0.0,"deg"), Quantity(0.0,"deg"), MDirection::Ref(MDirection::AZEL)), Quantity(1.0,"GHz")) , |
||
Bool | useSymmetricBeam = False |
||
) |
Instantiation from arguments; default = no squint squint is the offset from pointing center if the Stokes R beam useSymmetricBeam forces a fit to the squinted beam.
Clone the object CountedPtr<PBMathInterface> clone();.
Destructor
void casa::PBMath1DPoly::fillPBArray | ( | ) | [protected, virtual] |
Fill in vp_p array from construction parameters.
Implements casa::PBMath1D.
PBMath1DPoly& casa::PBMath1DPoly::operator= | ( | const PBMath1DPoly & | other | ) |
Instantiation from a row in the Beam subTable PBMath1DPoly(const Table& BeamSubTable, Int row, Bool useSymmetricBeam=False);.
Copy constructor PBMath1DPoly(const PBMath1DPoly& other);
Assignment operator, by reference
void casa::PBMath1DPoly::summary | ( | Int | nValues = 0 | ) | [virtual] |
Flush the construction parameters to disk Bool flushToTable(Table& beamSubTable, Int iRow);.
Summarize the construction data for this primary beam
Reimplemented from casa::PBMath1D.
PBMathInterface::PBClass casa::PBMath1DPoly::whichPBClass | ( | ) | [inline, virtual] |
Get the type of PB this is.
Implements casa::PBMathInterface.
Definition at line 127 of file PBMath1DPoly.h.
References casa::PBMathInterface::POLY.
Vector<Double> casa::PBMath1DPoly::coeff_p [private] |
Definition at line 142 of file PBMath1DPoly.h.