#include <ImagePrimaryBeamCorrector.h>
Public Types | |
enum | Mode { MULTIPLY, DIVIDE } |
Top level interface for primary beam correction. More... | |
Public Member Functions | |
ImagePrimaryBeamCorrector () | |
ImagePrimaryBeamCorrector (const SPCIIF image, const SPCIIF pbImage, const Record *const ®ionPtr, const String ®ion, const String &box, const String &chanInp, const String &stokes, const String &maskInp, const String &outname, const Bool overwrite, const Float cutoff, const Bool useCutoff, const Mode mode) | |
if outname is empty, no image will be written if overwrite is True, if image already exists it will be removed if overwrite is False, if image already exists exception will be thrown Only one of regionPtr or region<src> should be specified. | |
ImagePrimaryBeamCorrector (const SPCIIF image, const Array< Float > &pbArray, const Record *const ®ionPtr, const String ®ion, const String &box, const String &chanInp, const String &stokes, const String &maskInp, const String &outname, const Bool overwrite, const Float cutoff, const Bool useCutoff, const Mode mode) | |
~ImagePrimaryBeamCorrector () | |
destructor | |
SPIIF | correct (const Bool wantReturn) const |
perform the correction. | |
String | getClass () const |
Protected Member Functions | |
vector< Coordinate::Type > | _getNecessaryCoordinates () const |
Represents the minimum set of coordinates necessary for the task to function. | |
CasacRegionManager::StokesControl | _getStokesControl () const |
Private Member Functions | |
void | _checkPBSanity () |
Private Attributes | |
SPIIF | _pbImage |
Float | _cutoff |
Mode | _mode |
Bool | _useCutoff |
Static Private Attributes | |
static const String | _class |
Definition at line 38 of file ImagePrimaryBeamCorrector.h.
Top level interface for primary beam correction.
Collapses image.
High level interface for primary beam correction.
ImagePrimaryBeamCorrector corrector(...); corrector.correct();
Definition at line 66 of file ImagePrimaryBeamCorrector.h.
casa::ImagePrimaryBeamCorrector::ImagePrimaryBeamCorrector | ( | ) |
casa::ImagePrimaryBeamCorrector::ImagePrimaryBeamCorrector | ( | const SPCIIF | image, | |
const SPCIIF | pbImage, | |||
const Record *const & | regionPtr, | |||
const String & | region, | |||
const String & | box, | |||
const String & | chanInp, | |||
const String & | stokes, | |||
const String & | maskInp, | |||
const String & | outname, | |||
const Bool | overwrite, | |||
const Float | cutoff, | |||
const Bool | useCutoff, | |||
const Mode | mode | |||
) |
if outname
is empty, no image will be written if overwrite
is True, if image already exists it will be removed if overwrite
is False, if image already exists exception will be thrown Only one of regionPtr
or region<src> should be specified.
casa::ImagePrimaryBeamCorrector::ImagePrimaryBeamCorrector | ( | const SPCIIF | image, | |
const Array< Float > & | pbArray, | |||
const Record *const & | regionPtr, | |||
const String & | region, | |||
const String & | box, | |||
const String & | chanInp, | |||
const String & | stokes, | |||
const String & | maskInp, | |||
const String & | outname, | |||
const Bool | overwrite, | |||
const Float | cutoff, | |||
const Bool | useCutoff, | |||
const Mode | mode | |||
) |
casa::ImagePrimaryBeamCorrector::~ImagePrimaryBeamCorrector | ( | ) |
destructor
void casa::ImagePrimaryBeamCorrector::_checkPBSanity | ( | ) | [private] |
vector<Coordinate::Type> casa::ImagePrimaryBeamCorrector::_getNecessaryCoordinates | ( | ) | const [protected, virtual] |
Represents the minimum set of coordinates necessary for the task to function.
Implements casa::ImageTask< Float >.
CasacRegionManager::StokesControl casa::ImagePrimaryBeamCorrector::_getStokesControl | ( | ) | const [protected, virtual] |
Implements casa::ImageTask< Float >.
SPIIF casa::ImagePrimaryBeamCorrector::correct | ( | const Bool | wantReturn | ) | const |
perform the correction.
If <src>wantReturn is True, return a pointer to the collapsed image.
String casa::ImagePrimaryBeamCorrector::getClass | ( | ) | const [virtual] |
Implements casa::ImageTask< Float >.
const String casa::ImagePrimaryBeamCorrector::_class [static, private] |
Definition at line 124 of file ImagePrimaryBeamCorrector.h.
Float casa::ImagePrimaryBeamCorrector::_cutoff [private] |
Definition at line 121 of file ImagePrimaryBeamCorrector.h.
Mode casa::ImagePrimaryBeamCorrector::_mode [private] |
Definition at line 122 of file ImagePrimaryBeamCorrector.h.
SPIIF casa::ImagePrimaryBeamCorrector::_pbImage [private] |
Definition at line 119 of file ImagePrimaryBeamCorrector.h.
Bool casa::ImagePrimaryBeamCorrector::_useCutoff [private] |
Definition at line 123 of file ImagePrimaryBeamCorrector.h.