38 template <
class T>
class ImageInterface;
50 static QString result(
"NRAO/CASA");
54 static QString result(
"Spectral Profiler");
60 static QString
toHTML(
const QString& baseStr );
62 static void getRa(
double radians,
int& raHour,
int& raMin,
double& raSec);
63 static void getDec(
double radians,
int& decDeg,
int& decMin,
double& decSec);
67 static void appendSign(
double rad, QString& degreeString );
81 static QString
stripFont( QString unitStr );
105 int channelMin,
int channelMax,
int spectralAxisNumber);
118 int channelMin,
int channelMax,
int spectralAxisNumber);
147 static double toRadians(
double degrees );
150 int channelMin,
int channelMax,
int spectralAxisNumber );
152 static const double PI;
static casacore::Record getEllipticalRegion3D(const DisplayCoordinateSystem &cSys, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y, int channelMin, int channelMax, int spectralAxisNumber)
Returns the record of a 3-dimension region with the base in the shape of an ellipse and height given ...
static void minMax(double &min, double &max, const casacore::Vector< casacore::Double > &values)
static const double TIME_CONV
static double toDecimalDegrees(int hrs, int mins, float seconds)
static const double RAD_DEGREE_CONVERSION
static casacore::ImageRegion * getEllipsoid(const DisplayCoordinateSystem &cSys, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y)
Return a 2D region in the shape of an ellipse.
AggregateType
Non-templated data related bits for ImageCollapser.
static void getDec(double radians, int &decDeg, int &decMin, double &decSec)
static casacore::Record getPolygonalRegion3D(const DisplayCoordinateSystem &cSys, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y, int channelMin, int channelMax, int spectralAxisNumber)
Returns the record of a 3-dimension region with the base in the shape of a polygon and height given b...
static QString toTitleCase(QString word)
static QString toDegreeString(int hrs, int mins, double secs)
TableExprNode mins(const TableExprNode &array, const TableExprNodeSet &collapseAxes)
static const QString & ORGANIZATION()
static casacore::ImageRegion * getPolygon(const DisplayCoordinateSystem &cSys, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y)
Return a 2D region in the shape of a polygon.
static std::pair< casacore::Vector< casacore::Float >, casacore::Vector< casacore::Float > > getProfile(std::shared_ptr< const casacore::ImageInterface< casacore::Float > > &imagePtr, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y, const casacore::String &shape, int tabularAxis, ImageCollapserData::AggregateType, casacore::String unit, const casacore::String &coordinateType, const casacore::Quantity *const restFreq=0, const casacore::String &frame="")
static double hrMinSecToRadians(int hours, int mins, float secs)
static casacore::String mainImageName(casacore::String path)
static void getRa(double radians, int &raHour, int &raMin, double &raSec)
static casacore::Record make3DRegion(const DisplayCoordinateSystem &cSys, casacore::ImageRegion *shape3D, int channelMin, int channelMax, int spectralAxisNumber)
static int getTabularFrequencyAxisIndex(std::shared_ptr< const casacore::ImageInterface< casacore::Float > > img)
Support for tabular axes that are frequency.
static int getCenter(const casacore::Vector< casacore::Double > &values, casacore::Double &mean)
std::string path(const std::string &name)
static void showUserMessage(QString &msg, QWidget *parent)
static QString stripFont(QString unitStr)
Designed to take an input string of the format <font color="black">km/s</font>' and return 'km/s'...
A hierarchical collection of named fields of various types.
static casacore::Record getRegionRecord(casacore::String shape, const DisplayCoordinateSystem &cSys, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y)
static QString toHTML(const QString &baseStr)
static double toRadians(double degrees)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
static bool arrayEquals(const casacore::Vector< casacore::Double > &a, const casacore::Vector< casacore::Double > &b)
Tests whether the contents of the two arrays are the same.
static const QString & APPLICATION()
static QString stripBrackets(QString unitStr)
Designed to take an input string of the format '[km/s]' and return 'km/s'.
Class to hold a region of interest in an image.
static QList< QString > getTitleCaseVariations(QString source)
LatticeExprNode mean(const LatticeExprNode &expr)
static QString toDecString(int hrs, int mins, double secs)
String: the storage and methods of handling collections of characters.
static void appendSign(double rad, QString °reeString)
static double degMinSecToRadians(int degrees, int mins, float secs)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.