SDMSManager.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
00029 #ifndef _CASA_SDMSMANAGER_H_
00030 #define _CASA_SDMSMANAGER_H_
00031
00032 #include <iostream>
00033 #include <string>
00034 #include <map>
00035
00036 #include <libsakura/sakura.h>
00037
00038 #include <casa/aipstype.h>
00039 #include <casa/Containers/Record.h>
00040 #include <casa_sakura/SakuraAlignedArray.h>
00041 #include <ms/MeasurementSets/MeasurementSet.h>
00042 #include <msvis/MSVis/VisBuffer2.h>
00043 #include <mstransform/MSTransform/MSTransformManager.h>
00044 #include <scimath/Mathematics/Convolver.h>
00045 #include <scimath/Mathematics/VectorKernel.h>
00046
00047 namespace casa {
00048
00049 class SDMSManager : public MSTransformManager {
00050 public:
00051
00052 SDMSManager();
00053
00054 explicit SDMSManager(string const& ms_name);
00055
00056
00057 void setSortColumns(Block<Int> sortColumns,
00058 bool addDefaultSortCols=false,
00059 Double timebin=0.0);
00060
00061
00062 void setSmoothing(string const &kernelType, float const &kernelWidth);
00063 void unsetSmoothing();
00064
00065
00066 void initializeSmoothing();
00067
00068 Record getSelRec(string const &spw);
00069
00070
00071
00072
00073 ~SDMSManager();
00074
00075 void fillCubeToOutputMs(vi::VisBuffer2 *vb,
00076 Cube<Float> const &data_cube);
00077
00078 void fillCubeToOutputMs(vi::VisBuffer2 *vb,
00079 Cube<Float> const &data_cube,
00080 Cube<Bool> const *flag_cube);
00081
00082 protected:
00083
00084 void fillCubeToDataCols(vi::VisBuffer2 *vb,RefRows &rowRef,
00085 Cube<Float> const &data_cube,
00086 Cube<Bool> const *flag_cube);
00087
00088 void setIterationApproach();
00089
00090 int getBlockId(Block<Int> const &data, Int const value);
00091
00092
00093 Vector<Int> inspectNumChan();
00094
00095 private:
00096 Block<Int> userSortCols_;
00097
00098
00099 Bool doSmoothing_;
00100 VectorKernel::KernelTypes kernelType_;
00101
00102 float kernelWidth_;
00103
00104 };
00105
00106
00107 }
00108
00109 #endif