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 SYNTHESIS_IMAGERMULTIMS_H
00029 #define SYNTHESIS_IMAGERMULTIMS_H
00030
00031 #include <synthesis/MeasurementEquations/Imager.h>
00032
00033 namespace casa {
00034
00035 class ImagerMultiMS : public Imager
00036 {
00037
00038 public:
00039
00040
00041 ImagerMultiMS();
00042
00043
00044 virtual Bool setDataToMemory(const String& msname, const String& mode,
00045 const Vector<Int>& nchan,
00046 const Vector<Int>& start,
00047 const Vector<Int>& step,
00048 const Vector<Int>& spectralwindowids,
00049 const Vector<Int>& fieldids,
00050 const String& msSelect,
00051 const String& timerng,
00052 const String& fieldnames,
00053 const Vector<Int>& antIndex,
00054 const String& antnames,
00055 const String& spwstring,
00056 const String& uvdist,
00057 const String& scan,
00058 const String& intent="",
00059 const String& obs="");
00060
00061 virtual Bool setDataPerMS(const String& msname, const String& mode,
00062 const Vector<Int>& nchan,
00063 const Vector<Int>& start,
00064 const Vector<Int>& step,
00065 const Vector<Int>& spectralwindowids,
00066 const Vector<Int>& fieldids,
00067 const String& msSelect="",
00068 const String& timerng="",
00069 const String& fieldnames="",
00070 const Vector<Int>& antIndex=Vector<Int>(),
00071 const String& antnames="",
00072 const String& spwstring="",
00073 const String& uvdist="",
00074 const String& scan="",
00075 const String& intent="",
00076 const String& obs="",
00077 const Bool useModel=False,
00078 const Bool msreadonly=False);
00079
00080
00081
00082 virtual Bool setimage(const Int nx, const Int ny,
00083 const Quantity& cellx, const Quantity& celly,
00084 const String& stokes,
00085 Bool doShift,
00086 const MDirection& phaseCenter,
00087 const Quantity& shiftx, const Quantity& shifty,
00088 const String& mode, const Int nchan,
00089 const Int start, const Int step,
00090 const MRadialVelocity& mStart, const MRadialVelocity& mStep,
00091 const Vector<Int>& spectralwindowids, const Int fieldid,
00092 const Int facets, const Quantity& distance);
00093
00094
00095 Bool selectDataChannel();
00096
00097
00098 virtual Bool lock();
00099
00100
00101 virtual Bool unlock();
00102
00103
00104 virtual Bool openSubTables();
00105
00106
00107 virtual Bool mapExtent(const String &referenceFrame, const String &movingSource,
00108 const String &pointingColumn, Vector<Double> ¢er, Vector<Double> &blc,
00109 Vector<Double> &trc, Vector<Double> &extent);
00110
00111 protected:
00112
00113 Block<Vector<Int> > blockNChan_p;
00114 Block<Vector<Int> > blockStart_p;
00115 Block<Vector<Int> > blockStep_p;
00116 Block<Vector<Int> > blockSpw_p;
00117 Block<MeasurementSet> blockMSSel_p;
00118 Bool setDataOnThisMS(MeasurementSet& ms, const String& mode="none",
00119 const Vector<Int>& nchan=Vector<Int>(0),
00120 const Vector<Int>& start=Vector<Int>(1,0),
00121 const Vector<Int>& step=Vector<Int>(1,1),
00122 const Vector<Int>& spectralwindowids=Vector<Int>(0),
00123 const Vector<Int>& fieldids=Vector<Int>(0),
00124 const String& msSelect="",
00125 const String& timerng="",
00126 const String& fieldnames="",
00127 const Vector<Int>& antIndex=Vector<Int>(),
00128 const String& antnames="",
00129 const String& spwstring="",
00130 const String& uvdist="",
00131 const String& scan="",
00132 const String& intent="",
00133 const String& obs="");
00134 Bool dataSet_p;
00135
00136
00137 };
00138
00139 }
00140
00141
00142 #endif
00143
00144