casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MSSpWindowEnums.h
Go to the documentation of this file.
00001 //# MSSpectralWindowEnums.h: Definitions for the MS SPECTRAL_WINDOW table
00002 //# Copyright (C) 1996,1999,2000
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 //#
00027 //# $Id: MSSpWindowEnums.h 18093 2004-11-30 17:51:10Z ddebonis $
00028 
00029 #ifndef MS_MSSPWINDOWENUMS_H
00030 #define MS_MSSPWINDOWENUMS_H
00031 
00032 #include <casa/aips.h>
00033 
00034 namespace casa { //# NAMESPACE CASA - BEGIN
00035 
00036 // <use visibility=export>
00037 
00038 // <summary> Enums for the MeasurementSet SPECTRAL_WINDOW table </summary>
00039 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
00040 // </reviewed>
00041 // <etymology>
00042 // This class contains the enums for the MeasurementSet SPECTRAL_WINDOW table
00043 // </etymology>
00044 // <synopsis>
00045 // This class does nothing.  It is merely a container for the enumerations
00046 // used by the MeasurementSet class.  These enumerations define the
00047 // standard columns and keywords.
00048 // </synopsis>
00049 
00050 // <example>
00051 // See the documentation for MeasurementSet for examples on the use of these
00052 // enumerations.
00053 // </example>
00054 // <todo asof="1996/01/16">
00055 // All the todo items which may be related to this class are
00056 // grouped with the todo items for MeasurementSet
00057 // </todo>
00058 //
00059 
00060 
00061 class MSSpectralWindowEnums {
00062 public:
00063     // The SpectralWindow table colums with predefined meaning.
00064     // The SPECTRAL_WINDOW_ID is the row number in the table.
00065     enum PredefinedColumns {
00066     // "True" columns are defined.<BR>
00067     // TYPE - UNIT - MEASURE
00068     UNDEFINED_COLUMN=0,
00069     // Center frequencies for each channel in the data matrix.
00070     // Can therefore be non-linear to allow for e.g. AOS <BR>
00071     // Double(NUM_CHAN) - Hz - FREQUENCY
00072     CHAN_FREQ,
00073     // The channel width for each channel <BR>
00074     // Double(NUM_CHAN) - Hz
00075     CHAN_WIDTH,
00076     // The effective noise bandwidth of each channel <BR>
00077     // Double(NUM_CHAN) - Hz
00078     EFFECTIVE_BW,
00079     // Row flag <BR>
00080     // Bool
00081     FLAG_ROW,
00082     // The frequency group <BR>
00083     // Int
00084     FREQ_GROUP,
00085     // The frequency group name <BR>
00086     // String
00087     FREQ_GROUP_NAME,
00088     // The IF conversion chain (to distinguish the separate electronic paths for
00089     // simultaneous observations at multiple frequencies). E.g., VLA A-C and 
00090     // B-D should always be numbered 0 and 1 resp.<BR>
00091     // Int
00092     IF_CONV_CHAIN,
00093     // The frequency measure reference <BR>
00094     // Int
00095     MEAS_FREQ_REF,
00096     // Spectral window name <BR>
00097     // String
00098     NAME,
00099     // Net sideband for this spectral window (+/- 1) <BR>
00100     // Int
00101     NET_SIDEBAND,
00102     // Number of spectral channels <BR>
00103     // Int
00104     NUM_CHAN,
00105     // The reference frequency (as specified on-line). <BR>
00106     // Double - Hz - FREQUENCY
00107     REF_FREQUENCY,
00108     // The effective spectral resolution of each channel
00109     // The Vector nature allows for variable-width channels.<BR>
00110     // Double(NUM_CHAN) - Hz
00111     RESOLUTION,
00112     // The total bandwidth (as specified on-line). <BR>
00113     // Double - Hz
00114     TOTAL_BANDWIDTH,
00115     //
00116     // Not a column, but just an enum specifying the number of required columns.
00117     NUMBER_REQUIRED_COLUMNS=TOTAL_BANDWIDTH,
00118     // Nature of association with other spectral window id <BR>
00119     // String(*)
00120     ASSOC_NATURE,
00121     // Associated spectral window id's, e.g. averaged spectra
00122     // Int(*)
00123     ASSOC_SPW_ID,
00124     // Baseband converter number <BR>
00125     // Int
00126     BBC_NO,
00127     // Baseband converter sideband <BR>
00128     // Int
00129     BBC_SIDEBAND,
00130     // Doppler id, points to DOPPLER table <BR>
00131     // Int
00132     DOPPLER_ID,
00133     // Receiver id, identifies receiver used for this spectral window.
00134     // May point to optional RECEIVER table <BR>
00135     // Int
00136     RECEIVER_ID,
00137     // Not a column, but just a final enum specifying the number of enums.
00138     NUMBER_PREDEFINED_COLUMNS=RECEIVER_ID
00139     };
00140   
00141     // Keywords with a predefined meaning
00142     enum PredefinedKeywords {
00143     //
00144     // "True" keywords are defined. 
00145     UNDEFINED_KEYWORD=0,
00146     //
00147     // Not a keyword, but just a final enum specifying the number of enums.
00148     NUMBER_PREDEFINED_KEYWORDS=0
00149     };
00150 };
00151 
00152 } //# NAMESPACE CASA - END
00153 
00154 #endif