27 #ifndef SCIMATH_GAUSSIANBEAM_H
28 #define SCIMATH_GAUSSIANBEAM_H
A 1-D Specialization of the Array class.
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...
Bool near(const GaussianBeam &left, const GaussianBeam &other, const Double relWidthTol, const Quantity &absPaTol)
void convert(const String &majUnit, const String &minUnit, const String &paUnit)
convert stored Quantities to the specified units
ostream-like interface to creating log messages.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
Represents a Gaussian restoring beam associated with an image.
const Quantity & getMajor() const
returns the major axis in the same units as it had at construction
GaussianBeam()
create a beam with all quantities zero (a null beam).
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
Double getArea(const Unit &unit) const
returns the beam area in the specified unit, which much conform to solid angle units.
Bool isNull() const
is this object a null beam (ie is either its major and/or minor axis zero)?
void setMajorMinor(const Quantity &majAx, const Quantity &minAx)
static const String & className()
returns GassianBeam.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
Bool operator==(const GaussianBeam &other) const
GaussianBeam & operator=(const GaussianBeam &other)
String: the storage and methods of handling collections of characters.
static Quantity _unwrap(const Quantity &pa)
Bool operator!=(const GaussianBeam &other) const
static const GaussianBeam NULL_BEAM
Vector< Quantity > toVector(const Bool unwrap=True) const
convert this object to a three-Vector of (major FWHM, minor FWHM, and pa).
Quantity getPA(const Bool unwrap=True) const
returns the position angle's value as it was at construction, unless unwrap is True, in which case the value of the angle returned will be between -90 and 90 degrees (but with unit the same as it had when this object was constructed).
static GaussianBeam fromRecord(const Record &rec)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
const Quantity & getMinor() const
returns the minor axis in the same units as it had at construction