casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImagerMultiMS.h
Go to the documentation of this file.
1 //# ImagerMultiMS.h: Imager functionality sits here;
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //#
25 //# $Id$
26 
27 
28 #ifndef SYNTHESIS_IMAGERMULTIMS_H
29 #define SYNTHESIS_IMAGERMULTIMS_H
30 
32 
33 namespace casa {
34 
35  class ImagerMultiMS : public Imager
36  {
37 
38  public:
39  // Default constructor with no ms
40 
41  ImagerMultiMS();
42  //Copy the sub ms to memory useful when imaging only
43  //a few channels
44  virtual casacore::Bool setDataToMemory(const casacore::String& msname, const casacore::String& mode,
45  const casacore::Vector<casacore::Int>& nchan,
48  const casacore::Vector<casacore::Int>& spectralwindowids,
49  const casacore::Vector<casacore::Int>& fieldids,
50  const casacore::String& msSelect,
51  const casacore::String& timerng,
52  const casacore::String& fieldnames,
53  const casacore::Vector<casacore::Int>& antIndex,
54  const casacore::String& antnames,
55  const casacore::String& spwstring,
56  const casacore::String& uvdist,
57  const casacore::String& scan,
58  const casacore::String& intent="",
59  const casacore::String& obs=""); // select by obs ID
60  // Set the data selection on for each ms seperately
61  virtual casacore::Bool setDataPerMS(const casacore::String& msname, const casacore::String& mode,
62  const casacore::Vector<casacore::Int>& nchan,
65  const casacore::Vector<casacore::Int>& spectralwindowids,
66  const casacore::Vector<casacore::Int>& fieldids,
67  const casacore::String& msSelect="",
68  const casacore::String& timerng="",
69  const casacore::String& fieldnames="",
71  const casacore::String& antnames="",
72  const casacore::String& spwstring="",
73  const casacore::String& uvdist="",
74  const casacore::String& scan="",
75  const casacore::String& intent="",
76  const casacore::String& obs="",
77  const casacore::Bool useModel=false,
78  const casacore::Bool msreadonly=false);
79 
80 
81  // Set image construction parameters
82  virtual casacore::Bool setimage(const casacore::Int nx, const casacore::Int ny,
83  const casacore::Quantity& cellx, const casacore::Quantity& celly,
84  const casacore::String& stokes,
85  casacore::Bool doShift,
86  const casacore::MDirection& phaseCenter,
87  const casacore::Quantity& shiftx, const casacore::Quantity& shifty,
88  const casacore::String& mode, const casacore::Int nchan,
89  const casacore::Int start, const casacore::Int step,
90  const casacore::MRadialVelocity& mStart, const casacore::MRadialVelocity& mStep,
91  const casacore::Vector<casacore::Int>& spectralwindowids, const casacore::Int fieldid,
92  const casacore::Int facets, const casacore::Quantity& distance);
93 
94 
96 
97  // Lock the ms and its subtables
98  virtual casacore::Bool lock();
99 
100  // Unlock the ms and its subtables
101  virtual casacore::Bool unlock();
102 
103  //open sub tables
104  virtual casacore::Bool openSubTables();
105 
106  // @copydoc Imager::mapExtent()
107  virtual casacore::Bool mapExtent(const casacore::String &referenceFrame, const casacore::String &movingSource,
110 
111  protected:
112 
124  const casacore::String& msSelect="",
125  const casacore::String& timerng="",
126  const casacore::String& fieldnames="",
128  const casacore::String& antnames="",
129  const casacore::String& spwstring="",
130  const casacore::String& uvdist="",
131  const casacore::String& scan="",
132  const casacore::String& intent="",
133  const casacore::String& obs="");
135 
136 
137  };
138 
139 } //# NAMESPACE CASA - END
140 
141 
142 #endif
143 
144 
A Measure: astronomical direction.
Definition: MDirection.h:174
int Int
Definition: aipstype.h:50
casacore::Block< casacore::Vector< casacore::Int > > blockNChan_p
casacore::Bool selectDataChannel()
virtual casacore::Bool setimage(const casacore::Int nx, const casacore::Int ny, const casacore::Quantity &cellx, const casacore::Quantity &celly, const casacore::String &stokes, casacore::Bool doShift, const casacore::MDirection &phaseCenter, const casacore::Quantity &shiftx, const casacore::Quantity &shifty, const casacore::String &mode, const casacore::Int nchan, const casacore::Int start, const casacore::Int step, const casacore::MRadialVelocity &mStart, const casacore::MRadialVelocity &mStep, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Int fieldid, const casacore::Int facets, const casacore::Quantity &distance)
Set image construction parameters.
casacore::Bool setDataOnThisMS(casacore::MeasurementSet &ms, const casacore::String &mode="none", const casacore::Vector< casacore::Int > &nchan=casacore::Vector< casacore::Int >(0), const casacore::Vector< casacore::Int > &start=casacore::Vector< casacore::Int >(1, 0), const casacore::Vector< casacore::Int > &step=casacore::Vector< casacore::Int >(1, 1), const casacore::Vector< casacore::Int > &spectralwindowids=casacore::Vector< casacore::Int >(0), const casacore::Vector< casacore::Int > &fieldids=casacore::Vector< casacore::Int >(0), const casacore::String &msSelect="", const casacore::String &timerng="", const casacore::String &fieldnames="", const casacore::Vector< casacore::Int > &antIndex=casacore::Vector< casacore::Int >(), const casacore::String &antnames="", const casacore::String &spwstring="", const casacore::String &uvdist="", const casacore::String &scan="", const casacore::String &intent="", const casacore::String &obs="")
virtual casacore::Bool setDataToMemory(const casacore::String &msname, const casacore::String &mode, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &start, const casacore::Vector< casacore::Int > &step, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Vector< casacore::Int > &fieldids, const casacore::String &msSelect, const casacore::String &timerng, const casacore::String &fieldnames, const casacore::Vector< casacore::Int > &antIndex, const casacore::String &antnames, const casacore::String &spwstring, const casacore::String &uvdist, const casacore::String &scan, const casacore::String &intent="", const casacore::String &obs="")
Copy the sub ms to memory useful when imaging only a few channels.
virtual casacore::Bool lock()
Lock the ms and its subtables.
A Measure: radial velocity.
ImagerMultiMS()
Default constructor with no ms.
casacore::Block< casacore::Vector< casacore::Int > > blockStep_p
virtual casacore::Bool setDataPerMS(const casacore::String &msname, const casacore::String &mode, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &start, const casacore::Vector< casacore::Int > &step, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Vector< casacore::Int > &fieldids, const casacore::String &msSelect="", const casacore::String &timerng="", const casacore::String &fieldnames="", const casacore::Vector< casacore::Int > &antIndex=casacore::Vector< casacore::Int >(), const casacore::String &antnames="", const casacore::String &spwstring="", const casacore::String &uvdist="", const casacore::String &scan="", const casacore::String &intent="", const casacore::String &obs="", const casacore::Bool useModel=false, const casacore::Bool msreadonly=false)
Set the data selection on for each ms seperately.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
A Table intended to hold astronomical data (a set of Measurements).
Class that contains functions needed for imager.
Definition: Imager.h:81
simple 1-D array
virtual casacore::Bool unlock()
Unlock the ms and its subtables.
virtual casacore::Bool openSubTables()
open sub tables
String: the storage and methods of handling collections of characters.
Definition: String.h:223
virtual casacore::Bool mapExtent(const casacore::String &referenceFrame, const casacore::String &movingSource, const casacore::String &pointingColumn, casacore::Vector< casacore::Double > &center, casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc, casacore::Vector< casacore::Double > &extent)
Automatic evaluation of map extent for given visibility.
casacore::Block< casacore::Vector< casacore::Int > > blockSpw_p
casacore::Block< casacore::MeasurementSet > blockMSSel_p
casacore::Block< casacore::Vector< casacore::Int > > blockStart_p
casacore::Bool dataSet_p