casa
$Rev:20696$
|
00001 //# SynthesisImager.h: Imager functionality sits here; 00002 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# 00025 //# $Id$ 00026 00027 #ifndef SYNTHESIS_SYNTHESISIMAGER_H 00028 #define SYNTHESIS_SYNTHESISIMAGER_H 00029 00030 #include <casa/aips.h> 00031 #include <casa/OS/Timer.h> 00032 #include <casa/Containers/Record.h> 00033 #include <ms/MeasurementSets/MeasurementSet.h> 00034 #include <casa/Arrays/IPosition.h> 00035 #include <casa/Quanta/Quantum.h> 00036 #include <measures/Measures/MDirection.h> 00037 00038 #include<synthesis/MeasurementEquations/SIMapperCollection.h> 00039 00040 #include <boost/scoped_ptr.hpp> 00041 00042 namespace casa { //# NAMESPACE CASA - BEGIN 00043 00044 // Forward declarations 00045 class MeasurementSet; 00046 template<class T> class ImageInterface; 00047 class SIIterBot; 00048 00049 // <summary> Class that contains functions needed for imager </summary> 00050 00051 class SynthesisImager 00052 { 00053 public: 00054 // Default constructor 00055 00056 SynthesisImager(); 00057 ~SynthesisImager(); 00058 00059 // Copy constructor and assignment operator 00060 //Imager(const Imager&); 00061 //Imager& operator=(const Imager&); 00062 00063 // make all pure-inputs const 00064 void selectData(Record selpars); 00065 void defineImage(Record impars); 00066 void setupImaging(Record gridpars); 00067 00068 void initMapper(); 00069 00070 //Record getMajorCycleControls(); 00071 void executeMajorCycle(Record& controls); 00072 00073 /* Access method to the Loop Controller held in this class */ 00074 //SIIterBot& getLoopControls(); 00075 00076 protected: 00077 00079 CountedPtr<CoordinateSystem> buildImageCoordinateSystem(String phasecenter, 00080 Double cellx, Double celly, 00081 uInt imx, uInt imy, 00082 uInt npol, uInt nchan); 00083 00084 CountedPtr<FTMachine> createFTMachine(); 00085 CountedPtr<VisSet> createVisSet(); 00086 00087 void runMajorCycle(); 00088 00090 00091 SIMapperCollection itsMappers; 00092 CountedPtr<VisSet> itsVisSet; 00093 00094 CountedPtr<FTMachine> itsCurrentFTMachine; 00095 CountedPtr<CoordinateSystem> itsCurrentCoordSys; 00096 CountedPtr<SIImageStore> itsCurrentImages; 00097 00099 00100 // Data Selection 00101 // Image Definition 00102 // Imaging/Gridding 00103 00104 // Other Options 00105 Bool itsUseScratch; 00106 00107 00108 }; 00109 00110 00111 } //# NAMESPACE CASA - END 00112 00113 #endif