ImagePrimaryBeamCorrector.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef IMAGEANALYSIS_IMAGEPRIMARYBEAMCORRECTOR_H
00029 #define IMAGEANALYSIS_IMAGEPRIMARYBEAMCORRECTOR_H
00030
00031 #include <imageanalysis/ImageAnalysis/ImageTask.h>
00032 #include <memory>
00033
00034 #include <casa/namespace.h>
00035
00036 namespace casa {
00037
00038 class ImagePrimaryBeamCorrector : public ImageTask<Float> {
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 public:
00065
00066 enum Mode {
00067 MULTIPLY,
00068 DIVIDE
00069 };
00070
00071 ImagePrimaryBeamCorrector() = delete;
00072
00073
00074
00075
00076
00077
00078
00079 ImagePrimaryBeamCorrector(
00080 const SPCIIF image,
00081 const SPCIIF pbImage,
00082 const Record * const ®ionPtr,
00083 const String& region, const String& box,
00084 const String& chanInp, const String& stokes,
00085 const String& maskInp,
00086 const String& outname, const Bool overwrite,
00087 const Float cutoff, const Bool useCutoff, const Mode mode
00088 );
00089
00090 ImagePrimaryBeamCorrector(
00091 const SPCIIF image,
00092 const Array<Float>& pbArray,
00093 const Record * const ®ionPtr,
00094 const String& region, const String& box,
00095 const String& chanInp, const String& stokes,
00096 const String& maskInp,
00097 const String& outname, const Bool overwrite,
00098 const Float cutoff, const Bool useCutoff, const Mode mode
00099 );
00100
00101
00102
00103
00104 ~ImagePrimaryBeamCorrector();
00105
00106
00107
00108 SPIIF correct(const Bool wantReturn) const;
00109
00110 String getClass() const;
00111
00112 protected:
00113
00114 vector<Coordinate::Type> _getNecessaryCoordinates() const;
00115
00116 CasacRegionManager::StokesControl _getStokesControl() const;
00117
00118 private:
00119 SPIIF _pbImage;
00120
00121 Float _cutoff;
00122 Mode _mode;
00123 Bool _useCutoff;
00124 const static String _class;
00125
00126 void _checkPBSanity();
00127 };
00128
00129 }
00130
00131 #endif