#include <ImageMomentsTask.h>
Public Member Functions | |
ImageMomentsTask () | |
Top level interface for creating image moments. | |
ImageMomentsTask (const SPCIIT image, const Record *const region, const String &mask, const String &smoothImageName, Bool overwrite) | |
overwrite only applies to the smooth image. | |
~ImageMomentsTask () | |
String | getClass () const |
SPIIT | makeMoments () const |
the first requested moments image is returned. | |
void | setAxis (Int axis) |
set moments axis number | |
void | setIncludeExcludeRange (const std::vector< T > &range, Bool isInclude) |
set the include or exclude range. | |
void | setKernels (const std::vector< String > &kernels) |
Set smoothing kernels. | |
void | setKernelWidths (const vector< Quantity > &kernelWidths) |
set smoothing kernel widths | |
void | setMethods (const vector< String > &methods) |
set moment methods | |
void | setMoments (const Vector< Int > &moments) |
set moments to compute | |
void | setMomentsProgressMonitor (ImageMomentsProgressMonitor *progressMonitor) |
void | setMomentImageName (const String &name) |
set the base name for the moment images. | |
void | setRemoveAxis (Bool remove) |
Should the moment axis be removed. | |
void | setSmoothAxes (const std::vector< uInt > &axes) |
set smoothing axes | |
void | setSNR (Double snr) |
set desired signal-to-noise. | |
void | setStdDev (Double stddev) |
set desired standard deviation. | |
void | setVelocityType (const String &type) |
set the velocity type. | |
Protected Member Functions | |
CasacRegionManager::StokesControl | _getStokesControl () const |
std::vector< Coordinate::Type > | _getNecessaryCoordinates () const |
Represents the minimum set of coordinates necessary for the task to function. | |
Bool | _supportsMultipleBeams () const |
does this task support images with multiple beams? False means it never does. | |
Bool | _supportsMultipleRegions () const |
Private Member Functions | |
void | _deleteTempImage (const String &tmpImage) const |
Private Attributes | |
Vector< Int > | _moments |
Int | _axis |
std::vector< String > | _methods |
std::vector< String > | _kernels |
std::vector< uInt > | _smoothAxes |
std::vector< Quantity > | _kernelWidths |
std::vector< T > | _range |
Bool | _isIncludeRange |
Bool | _removeAxis |
Double | _snr |
Double | _stddev |
String | _velocityType |
String | _momentName |
ImageMomentsProgressMonitor * | _imageMomentsProgressMonitor |
Definition at line 12 of file ImageMomentsTask.h.
casa::ImageMomentsTask< T >::ImageMomentsTask | ( | ) |
casa::ImageMomentsTask< T >::ImageMomentsTask | ( | const SPCIIT | image, | |
const Record *const | region, | |||
const String & | mask, | |||
const String & | smoothImageName, | |||
Bool | overwrite | |||
) |
overwrite only applies to the smooth image.
The moment images should be removed if they exist.
casa::ImageMomentsTask< T >::~ImageMomentsTask | ( | ) | [inline] |
Definition at line 43 of file ImageMomentsTask.h.
void casa::ImageMomentsTask< T >::_deleteTempImage | ( | const String & | tmpImage | ) | const [private] |
std::vector<Coordinate::Type> casa::ImageMomentsTask< T >::_getNecessaryCoordinates | ( | ) | const [inline, protected, virtual] |
Represents the minimum set of coordinates necessary for the task to function.
Implements casa::ImageTask< T >.
Definition at line 109 of file ImageMomentsTask.h.
CasacRegionManager::StokesControl casa::ImageMomentsTask< T >::_getStokesControl | ( | ) | const [inline, protected, virtual] |
Implements casa::ImageTask< T >.
Definition at line 105 of file ImageMomentsTask.h.
References casa::CasacRegionManager::USE_ALL_STOKES.
Bool casa::ImageMomentsTask< T >::_supportsMultipleBeams | ( | ) | const [inline, protected, virtual] |
does this task support images with multiple beams? False means it never does.
True means it does, but not necessarily in all cases (in which case, the derived class is responsible for checking for and throwing exceptions in those cases).
Reimplemented from casa::ImageTask< T >.
Definition at line 113 of file ImageMomentsTask.h.
References casacore::True.
Bool casa::ImageMomentsTask< T >::_supportsMultipleRegions | ( | ) | const [inline, protected, virtual] |
Reimplemented from casa::ImageTask< T >.
Definition at line 115 of file ImageMomentsTask.h.
References casacore::True.
String casa::ImageMomentsTask< T >::getClass | ( | ) | const [inline, virtual] |
Implements casa::ImageTask< T >.
Definition at line 45 of file ImageMomentsTask.h.
References String.
SPIIT casa::ImageMomentsTask< T >::makeMoments | ( | ) | const |
the first requested moments image is returned.
void casa::ImageMomentsTask< T >::setAxis | ( | Int | axis | ) |
set moments axis number
void casa::ImageMomentsTask< T >::setIncludeExcludeRange | ( | const std::vector< T > & | range, | |
Bool | isInclude | |||
) |
set the include or exclude range.
An empty vector means no range is set, a one element vector means -range[0] to range[0] is set. If the vector contains more than two elements, an exception is thrown. If isInclude is True, then the range is the range to be included, excluded if False.
void casa::ImageMomentsTask< T >::setKernels | ( | const std::vector< String > & | kernels | ) | [inline] |
Set smoothing kernels.
Definition at line 60 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_kernels.
void casa::ImageMomentsTask< T >::setKernelWidths | ( | const vector< Quantity > & | kernelWidths | ) | [inline] |
set smoothing kernel widths
Definition at line 63 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_kernelWidths.
void casa::ImageMomentsTask< T >::setMethods | ( | const vector< String > & | methods | ) | [inline] |
set moment methods
Definition at line 68 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_methods.
void casa::ImageMomentsTask< T >::setMomentImageName | ( | const String & | name | ) | [inline] |
set the base name for the moment images.
Definition at line 78 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_momentName.
void casa::ImageMomentsTask< T >::setMoments | ( | const Vector< Int > & | moments | ) |
set moments to compute
void casa::ImageMomentsTask< T >::setMomentsProgressMonitor | ( | ImageMomentsProgressMonitor * | progressMonitor | ) | [inline] |
Definition at line 73 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_imageMomentsProgressMonitor.
void casa::ImageMomentsTask< T >::setRemoveAxis | ( | Bool | remove | ) | [inline] |
Should the moment axis be removed.
These rules will be followed: If the moment axis is associated with a coordinate with one axis only, the axis and its coordinate are physically removed from the output image. Otherwise, if remove=True
then the output axis is logically removed from the the output CoordinateSystem. If remove=False
then the axis is retained with shape=1 and with its original coordinate information (which is probably meaningless).
Definition at line 87 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_removeAxis.
void casa::ImageMomentsTask< T >::setSmoothAxes | ( | const std::vector< uInt > & | axes | ) |
set smoothing axes
void casa::ImageMomentsTask< T >::setSNR | ( | Double | snr | ) | [inline] |
set desired signal-to-noise.
Less than or equal to zero means use the default value.
Definition at line 94 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_snr.
void casa::ImageMomentsTask< T >::setStdDev | ( | Double | stddev | ) | [inline] |
set desired standard deviation.
Less than or equal to zero means set to 0.
Definition at line 98 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_stddev.
void casa::ImageMomentsTask< T >::setVelocityType | ( | const String & | type | ) | [inline] |
set the velocity type.
Definition at line 101 of file ImageMomentsTask.h.
References casa::ImageMomentsTask< T >::_velocityType.
Int casa::ImageMomentsTask< T >::_axis [private] |
Definition at line 119 of file ImageMomentsTask.h.
ImageMomentsProgressMonitor* casa::ImageMomentsTask< T >::_imageMomentsProgressMonitor [private] |
Definition at line 127 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setMomentsProgressMonitor().
Bool casa::ImageMomentsTask< T >::_isIncludeRange [private] |
Definition at line 124 of file ImageMomentsTask.h.
std::vector<String> casa::ImageMomentsTask< T >::_kernels [private] |
Definition at line 120 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setKernels().
std::vector<Quantity> casa::ImageMomentsTask< T >::_kernelWidths [private] |
Definition at line 122 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setKernelWidths().
std::vector<String> casa::ImageMomentsTask< T >::_methods [private] |
Definition at line 120 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setMethods().
String casa::ImageMomentsTask< T >::_momentName [private] |
Definition at line 126 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setMomentImageName().
Vector<Int> casa::ImageMomentsTask< T >::_moments [private] |
Definition at line 118 of file ImageMomentsTask.h.
std::vector<T> casa::ImageMomentsTask< T >::_range [private] |
Definition at line 123 of file ImageMomentsTask.h.
Bool casa::ImageMomentsTask< T >::_removeAxis [private] |
Definition at line 124 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setRemoveAxis().
std::vector<uInt> casa::ImageMomentsTask< T >::_smoothAxes [private] |
Definition at line 121 of file ImageMomentsTask.h.
Double casa::ImageMomentsTask< T >::_snr [private] |
Definition at line 125 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setSNR().
Double casa::ImageMomentsTask< T >::_stddev [private] |
Definition at line 125 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setStdDev().
String casa::ImageMomentsTask< T >::_velocityType [private] |
Definition at line 126 of file ImageMomentsTask.h.
Referenced by casa::ImageMomentsTask< T >::setVelocityType().