casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MSSourceEnums.h
Go to the documentation of this file.
00001 //# MSSourceEnums.h: Definitions for the MeasurementSet SOURCE 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: MSSourceEnums.h 18093 2004-11-30 17:51:10Z ddebonis $
00028 
00029 #ifndef MS_MSSOURCEENUMS_H
00030 #define MS_MSSOURCEENUMS_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 SOURCE 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 SOURCE table
00043 // </etymology>
00044 // <synopsis>
00045 // This class does nothing.  It is merely a container for the enumerations
00046 // used by the MSSource class.  These enumerations define the
00047 // standard columns, 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="1999/01/15">
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 class MSSourceEnums {
00061 public:
00062     // The Antenna table colums with predefined meaning.
00063     // Keys: SPECTRAL_WINDOW_ID, INTERVAL, TIME, SOURCE_ID
00064     enum PredefinedColumns {
00065     // "True" columns are defined.<BR>
00066     // TYPE - UNIT - MEASURE
00067     UNDEFINED_COLUMN=0,
00068     // Number of grouping for calibration purpose.<BR>
00069     // Int.
00070     CALIBRATION_GROUP,  
00071     // Special characteristics of source, e.g. Bandpass calibrator.
00072     // We need to define a standard set that can be used for
00073     // automated data reduction..<BR>
00074     // String.
00075     CODE,  
00076     // Direction (e.g. RA, DEC).<BR>
00077     // Double(2) - rad - DIRECTION.
00078     DIRECTION,  
00079     // Interval of time for which this set of parameters is accurate.<BR>
00080     // Double - s
00081     INTERVAL,  
00082     // Name of source as given during observations.<BR>
00083     // String.
00084     NAME,  
00085     // Number of spectral lines <BR>
00086     // Int
00087     NUM_LINES,
00088     // Proper motion.<BR>
00089     // Double(2) - rad/s - ?.
00090     PROPER_MOTION,  
00091     // Source id.<BR>
00092     // Int.
00093     SOURCE_ID,
00094     // Spectral window id.<BR>
00095     // Int.
00096     SPECTRAL_WINDOW_ID,  
00097     // Midpoint of time for which this set of parameters is accurate.<BR>
00098     // Double - s - EPOCH.
00099     TIME,  
00100     // Number of required columns
00101     NUMBER_REQUIRED_COLUMNS=TIME,
00102     // Position (e.g. for solar system objects.<BR>
00103     // Double(3) - m - POSITION.
00104     POSITION,  
00105     // Pulsar Id <BR>
00106     // Int
00107     PULSAR_ID,
00108     // Line rest frequency <BR>
00109     // Double(NUM_LINES) - Hz - Frequency
00110     REST_FREQUENCY,
00111     // Default Component Source Model <BR>
00112     // TableRecord
00113     SOURCE_MODEL,
00114     // Systemic velocity at reference.<BR>
00115     // Double(NUM_LINES) - m/s - RADIALVELOCITY.
00116     SYSVEL,  
00117     // Transition name <BR>
00118     // String(NUM_LINES)
00119     TRANSITION,
00120     // Not a column, but just a final enum specifying the number of enums.
00121     NUMBER_PREDEFINED_COLUMNS=TRANSITION
00122     };
00123   
00124     // Keywords with a predefined meaning
00125     enum PredefinedKeywords {
00126     //
00127     // "True" keywords are defined. 
00128     UNDEFINED_KEYWORD=0,
00129     //
00130     // Not a keyword, but just a final enum specifying the number of enums.
00131     NUMBER_PREDEFINED_KEYWORDS=0
00132     };
00133 };
00134 
00135 } //# NAMESPACE CASA - END
00136 
00137 #endif