casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIMapperCollection.h
Go to the documentation of this file.
1 //# SIMapperCollection.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 #ifndef SYNTHESIS_VB2_SIMAPPERCOLLECTION_H
28 #define SYNTHESIS_VB2_SIMAPPERCOLLECTION_H
29 
30 #include <casa/aips.h>
31 #include <casa/OS/Timer.h>
32 #include <casa/Containers/Record.h>
34 #include <casa/Arrays/IPosition.h>
35 #include <casa/Quanta/Quantum.h>
37 
40 
41 namespace casa { //# NAMESPACE CASA - BEGIN
42  namespace refim {
43 
45 {
46  public:
47  // Default constructor
48 
51 
55 
56  /* // No need for now.
57  // Write this function only if we need to support multiple facets on outlier fields too.
58  // In that case, hold a list of original ImageStores and a map to the list of Mappers
59  // to keep track of which original image points to which subset of the Mapper list.
60  // Also add code into "finalizeGrid" to copy only one PSF to the original.
61  void addMapper( casacore::Int mapperId,
62  casacore::String mapperType,
63  casacore::uInt nTaylorTerms,
64  casacore::CountedPtr<FTMachine> ftm,
65  casacore::CountedPtr<FTMachine> iftm,
66  casacore::String imageName,
67  casacore::CoordinateSystem& cSys,
68  casacore::IPosition imShape,
69  const casacore::Bool overwrite );
70  */
71 
73  void initializeGrid(vi::VisBuffer2& vb, const casacore::Bool dopsf=false);
74  void grid(vi::VisBuffer2& vb, const casacore::Bool dopsf=false, const FTMachine::Type col=FTMachine::CORRECTED);
75  void finalizeGrid(vi::VisBuffer2& vb, const casacore::Bool dopsf=false);
77  void degrid(vi::VisBuffer2& vb, const casacore::Bool saveVirtualMod=false);
79  void finalizeDegrid(const vi::VisBuffer2& vb);
80 
82 
85 
86  void checkOverlappingModels(casacore::String action); // action='blank' or 'restore'
87 
88 protected:
89 
91 
94 
95 };
96 
97  }//# namespace refim
98 } //# NAMESPACE CASA - END
99 
100 #endif
int Int
Definition: aipstype.h:50
SIMapperCollection()
Default constructor.
*casacore::Block< casacore::CountedPtr< SIMapper > > itsMappers
casacore::Bool releaseImageLocks()
void grid(vi::VisBuffer2 &vb, const casacore::Bool dopsf=false, const FTMachine::Type col=FTMachine::CORRECTED)
void saveVirtualModel(vi::VisBuffer2 &vb)
void addMapper(casacore::CountedPtr< SIMapper > map)
void finalizeGrid(vi::VisBuffer2 &vb, const casacore::Bool dopsf=false)
Referenced counted pointer for constant data.
Definition: VisModelData.h:42
void degrid(vi::VisBuffer2 &vb, const casacore::Bool saveVirtualMod=false)
Type
Types of known Images that may be made using the makeImage method.
Definition: FTMachine.h:127
void finalizeDegrid(const vi::VisBuffer2 &vb)
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
simple 1-D array
*void initializeGrid(vi::VisBuffer2 &vb, const casacore::Bool dopsf=false)
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
casacore::Vector< casacore::String > getImageNames()
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void checkOverlappingModels(casacore::String action)
casacore::CountedPtr< SIImageStore > imageStore(const casacore::Int id=0)
casacore::Record getFTMRecord(casacore::Int mapperid)
void initializeDegrid(vi::VisBuffer2 &vb)