casa
5.7.0-16
|
Parse various common input parameters to image analysis tasks and tool methods <author>Dave Mehringer</author> More...
#include <ParameterParser.h>
Static Public Member Functions | |
static std::vector < casacore::uInt > | consolidateAndOrderRanges (casacore::uInt &nSelected, const std::vector< casacore::uInt > &ranges) |
ranges are pairs describing the pixel range over which to select. More... | |
static std::vector < casacore::uInt > | spectralRangesFromChans (casacore::uInt &nSelectedChannels, const casacore::String &specification, const casacore::uInt nChannels) |
get spectral ranges from chans parameter, nSelectedChannels will have the total number of channels selected for the specification, for an image that has nChannels. More... | |
static std::vector < casacore::String > | stokesFromString (casacore::String &specification) |
get a vector of correlations, represented by casacore::String, from a stokes string specifcation, eg, "LLRR", "IV", etc that is commonly used in the stokes parameter in casa image analysis tasks More... | |
Parse various common input parameters to image analysis tasks and tool methods <author>Dave Mehringer</author>
Public interface
Parse parameters
This class is for parsing input parameters associated with image analysis tasks and tool methods.
Definition at line 61 of file ParameterParser.h.
|
static |
ranges
are pairs describing the pixel range over which to select.
If you want to select just one pixel in the "range", you must specify that pixel in both parts of the pair. So if you want to select pixels 0 through 5 and pixel 13, you'd specify ranges[0] = 0; ranges[1] = 5; ranges[2] = 13; ranges[3] = 13
|
static |
get spectral ranges from chans parameter, nSelectedChannels will have the total number of channels selected for the specification, for an image that has nChannels.
|
static |
get a vector of correlations, represented by casacore::String, from a stokes string specifcation, eg, "LLRR", "IV", etc that is commonly used in the stokes parameter in casa image analysis tasks