27 #ifndef SCIMATH_GAUSSIANBEAM_H
28 #define SCIMATH_GAUSSIANBEAM_H
30 #include <casacore/casa/aips.h>
31 #include <casacore/casa/Quanta/Quantum.h>
Double getMajor(const Unit &u) const
returns the value portion of the major axis in the specified units
const Quantity & getMajor() const
returns the major axis in the same units as it had at construction
Bool operator!=(const GaussianBeam &other) const
void convert(const String &majUnit, const String &minUnit, const String &paUnit)
convert stored Quantities to the specified units
void setMajorMinor(const Quantity &majAx, const Quantity &minAx)
Vector< Quantity > toVector(const Bool unwrap=True) const
convert this object to a three-Vector of (major FWHM, minor FWHM, and pa).
Bool isNull() const
is this object a null beam (ie is either its major and/or minor axis zero)?
GaussianBeam(const GaussianBeam &other)
Double getMinor(const Unit &u) const
returns the value portion of the minor axis in the specified units
GaussianBeam(const Vector< Quantity > &parms)
Construct a beam from a 3-Vector of Quantities representing the major axis, the minor axis and the po...
static GaussianBeam fromRecord(const Record &rec)
Quantity getPA(const Bool unwrap=True) const
returns the position angle's value as it was at construction, unless unwrap is True,...
const Quantity & getMinor() const
returns the minor axis in the same units as it had at construction
GaussianBeam(const Quantity &major, const Quantity &minor, const Quantity &pa)
Construct a beam from a set of Quantities.
Double getArea(const Unit &unit) const
returns the beam area in the specified unit, which much conform to solid angle units.
static Quantity _unwrap(const Quantity &pa)
static const String & className()
returns GassianBeam.
Double getPA(const Unit &u, const Bool unwrap=True) const
returns the value portion of the position angle in the specified units
GaussianBeam()
create a beam with all quantities zero (a null beam).
GaussianBeam & operator=(const GaussianBeam &other)
void setPA(const Quantity &pa, Bool unwrap=False)
if unwrap=True, unwrap pa so its value lies in the range -90 to 90 degrees before setting it.
static const GaussianBeam NULL_BEAM
Bool operator==(const GaussianBeam &other) const
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Bool near(const GaussianBeam &left, const GaussianBeam &other, const Double relWidthTol, const Quantity &absPaTol)