casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MSDopplerUtil.h
Go to the documentation of this file.
00001 //# MSDopplerUtil.h: utility class for MS Doppler tracking information
00002 //# Copyright (C) 2000,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 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: MSDopplerUtil.h 18093 2004-11-30 17:51:10Z ddebonis $
00027 
00028 #ifndef MS_MSDOPPLERUTIL_H
00029 #define MS_MSDOPPLERUTIL_H
00030 
00031 #include <casa/aips.h>
00032 #include <ms/MeasurementSets/MeasurementSet.h>
00033 
00034 namespace casa { //# NAMESPACE CASA - BEGIN
00035 
00036 // <summary>
00037 // A utility class for MS Doppler tracking information
00038 // </summary>
00039 //
00040 // <use visibility=export>
00041 //
00042 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00043 // </reviewed>
00044 
00045 // <prerequisite>
00046 //   <li> MeasurementSet
00047 //   <li> MSDoppler
00048 // </prerequisite>
00049 //
00050 // <etymology>
00051 // From "MeasurementSet", "Doppler" and "utility".
00052 // </etymology>
00053 //
00054 // <synopsis>
00055 // This class provides utilities for handling Doppler tracking
00056 // information in a MeasurementSet. 
00057 // </synopsis>
00058 //
00059 // <example>
00060 // </example>
00061 //
00062 // <motivation>
00063 // Collect all utilities for handling MS Doppler tracking information.
00064 // </motivation>
00065 //
00066 // <thrown>
00067 //    <li>
00068 //    <li>
00069 // </thrown>
00070 //
00071 // <todo asof="2000/09/01">
00072 //   <li> averaging over other indices.
00073 // </todo>
00074 
00075 class MSDopplerUtil
00076 {
00077 public:
00078   // Construct from an existing MeasurementSet
00079   MSDopplerUtil (const MeasurementSet& ms);
00080 
00081   // Null destructor
00082   ~MSDopplerUtil();
00083 
00084   // Retrieve a list of all rest frequencies used for a given 
00085   // spectral window id and field id.
00086   // Note that the output vector combines information for multiple spectral lines
00087   // and (unlikely) multiple source table entries.
00088   // If the doppler sub table doesn't exist, the information is
00089   // retrieved from directly from the source sub table.
00090   Bool dopplerInfo (Vector<Double>& restFrequency, Int spwId, Int fieldId);
00091 
00092 private:
00093   // Prohibit null constructor, copy constructor and assignment for now
00094   MSDopplerUtil();
00095   MSDopplerUtil& operator= (const MSDopplerUtil&);
00096   MSDopplerUtil (const MSDopplerUtil&);
00097 
00098   // Underlying MeasurementSet
00099   MeasurementSet ms_p;
00100 };
00101 
00102 
00103 } //# NAMESPACE CASA - END
00104 
00105 #endif
00106 
00107