casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SimpleSubMS.h
Go to the documentation of this file.
00001 //# SimpleSubMS.h: this defines SubMS which creates a subset of an MS with some
00002 //# transformation
00003 //# Copyright (C) 1997,1998,1999,2000,2001,2003
00004 //# Associated Universities, Inc. Washington DC, USA.
00005 //#
00006 //# This library is free software; you can redistribute it and/or modify it
00007 //# under the terms of the GNU Library General Public License as published by
00008 //# the Free Software Foundation; either version 2 of the License, or (at your
00009 //# option) any later version.
00010 //#
00011 //# This library is distributed in the hope that it will be useful, but WITHOUT
00012 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014 //# License for more details.
00015 //#
00016 //# You should have received a copy of the GNU Library General Public License
00017 //# along with this library; if not, write to the Free Software Foundation,
00018 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00019 //#
00020 //# Correspondence concerning AIPS++ should be addressed as follows:
00021 //#        Internet email: aips2-request@nrao.edu.
00022 //#        Postal address: AIPS++ Project Office
00023 //#                        National Radio Astronomy Observatory
00024 //#                        520 Edgemont Road
00025 //#                        Charlottesville, VA 22903-2475 USA
00026 //#
00027 //#
00028 //# $Id$
00029 
00030 #include <synthesis/MSVis/SubMS.h>
00031 
00032 
00033 #ifndef MSVIS_SIMPLESUBMS_H
00034 
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 #define MSVIS_SUBMS_H
00038 //
00039 // <summary>
00040 // SimpleSubMS provide a simpler subset of SubMS. 
00041 // The purpose of this class to avoid unnecessary IO  for some simplistic selection and subMSsing
00042 // No averaging no fanciness...simple time and channel subsets.
00043 // </summary>
00044 
00045 // <visibility=export>
00046 
00047 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00048 // </reviewed>
00049 
00050 // <prerequisite>
00051 //   <li> MeasurementSet
00052 // </prerequisite>
00053 //
00054 // <etymology>
00055 // SimpleSubMS ...from the SUBset of an MS and Simple
00056 // </etymology>
00057 //
00058 // <synopsis>
00059 // The order of operations (as in ms::split()) is:
00060 //      ctor
00061 //      setmsselect
00062 //      selectTime
00063 //      makeScratchSubMS
00064 // </synopsis>
00065 
00066   class SimpleSubMS : public SubMS
00067 {
00068 
00069  public:
00070 
00071   // Constructor with an ms
00072   SimpleSubMS(MeasurementSet& ms);
00073   //Die...die
00074   ~SimpleSubMS();
00075   // In this form whichDataCol gets passed to parseColumnNames().
00076   virtual MeasurementSet* makeMemSubMS(const MS::PredefinedColumns& datacol, const String& diskname=String(""));
00077   
00078 
00079 
00080 
00081 };
00082 
00083 
00084 } //# NAMESPACE CASA - END
00085 
00086 #endif