Go to the documentation of this file.
27 #ifndef SCIMATH_GAUSSIANBEAM_H
28 #define SCIMATH_GAUSSIANBEAM_H
30 #include <casacore/casa/aips.h>
31 #include <casacore/casa/Quanta/Quantum.h>
static GaussianBeam fromRecord(const Record &rec)
const Quantity & getMajor() const
returns the major axis in the same units as it had at construction
Represents a Gaussian restoring beam associated with an image.
Double getArea(const Unit &unit) const
returns the beam area in the specified unit, which much conform to solid angle units.
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.
Double getPA(const Unit &u, const Bool unwrap=True) const
returns the value portion of the position angle in the specified units
static const String & className()
returns GassianBeam.
Double getMajor(const Unit &u) const
returns the value portion of the major axis in the specified units
GaussianBeam(const Quantity &major, const Quantity &minor, const Quantity &pa)
Construct a beam from a set of Quantities.
void convert(const String &majUnit, const String &minUnit, const String &paUnit)
convert stored Quantities to the specified units
static Quantity _unwrap(const Quantity &pa)
GaussianBeam()
create a beam with all quantities zero (a null beam).
static const GaussianBeam NULL_BEAM
Bool operator!=(const GaussianBeam &other) const
ostream-like interface to creating log messages.
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 near(const GaussianBeam &left, const GaussianBeam &other, const Double relWidthTol, const Quantity &absPaTol)
Bool operator==(const GaussianBeam &other) const
GaussianBeam(const GaussianBeam &other)
const Quantity & getMinor() const
returns the minor axis in the same units as it had at construction
this file contains all the compiler specific defines
Quantity getPA(const Bool unwrap=True) const
returns the position angle's value as it was at construction, unless unwrap is True,...
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
GaussianBeam(const Vector< Quantity > &parms)
Construct a beam from a 3-Vector of Quantities representing the major axis, the minor axis and the po...
GaussianBeam & operator=(const GaussianBeam &other)
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Double getMinor(const Unit &u) const
returns the value portion of the minor axis in the specified units
A hierarchical collection of named fields of various types.
A 1-D Specialization of the Array class.
Bool isNull() const
is this object a null beam (ie is either its major and/or minor axis zero)?