casa
$Rev:20696$
|
00001 //# MSContinuumSubtractor.h: Fit & subtract continuum from spectral line data 00002 //# Copyright (C) 2004 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$ 00027 //# 00028 #ifndef SPLAT_SPLATALOGUETABLE_H 00029 #define SPLAT_SPLATALOGUETABLE_H 00030 00031 #include <casa/aips.h> 00032 00033 #include <casa/Arrays/Vector.h> 00034 #include <casa/Containers/Record.h> 00035 #include <tables/Tables/Table.h> 00036 00037 namespace casa { 00038 00039 // <summary>Representation of a Splatalogue Table</summary> 00040 // <use visibility=export> 00041 // 00042 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> 00043 // </reviewed> 00044 // 00045 00046 // <etymology> 00047 // Splatalogue Table 00048 // </etymology> 00049 // 00050 // <synopsis> 00051 // A table containing Splatalogue fields and metadata which holds Splatalogue data. 00052 // </synopsis> 00053 // 00054 // <example> 00055 // <srcBlock> 00056 00057 // </srcBlock> 00058 // </example> 00059 // 00060 // <motivation> 00061 // 00062 // </motivation> 00063 // 00064 // <todo asof=""> 00065 // </todo> 00066 00067 class SplatalogueTable : public Table { 00068 public: 00069 00070 const static String SPECIES; 00071 const static String RECOMMENDED; 00072 const static String CHEMICAL_NAME; 00073 const static String FREQUENCY; 00074 const static String QUANTUM_NUMBERS; 00075 const static String INTENSITY; 00076 const static String SMU2; 00077 const static String LOGA; 00078 const static String EL; 00079 const static String EU; 00080 const static String LINELIST; 00081 const static String ISSPLAT; 00082 00083 const static String RECORD_VALUE; 00084 const static String RECORD_UNIT; 00085 const static String RECORD_SPECIES; 00086 const static String RECORD_RECOMMENDED; 00087 const static String RECORD_CHEMNAME; 00088 const static String RECORD_FREQUENCY; 00089 const static String RECORD_QNS; 00090 const static String RECORD_INTENSITY; 00091 const static String RECORD_SMU2; 00092 const static String RECORD_LOGA; 00093 const static String RECORD_EL; 00094 const static String RECORD_EU; 00095 const static String RECORD_LINE_LIST; 00096 00097 SplatalogueTable( 00098 SetupNewTable& snt, uInt nrow, 00099 const String& freqUnit, const String& smu2Unit, 00100 const String& elUnit, const String& euUnit 00101 ); 00102 00103 // open an existing splatalogue table. Checks are done to ensure the table 00104 // is indeed a SplatalogueTable and not just a generic table. If 00105 00106 SplatalogueTable(const String& tablename); 00107 00108 // copy semantics. Tests are done to insure the input table is a splatalogue table. 00109 SplatalogueTable(const Table& table); 00110 00111 String getFrequencyUnit() const; 00112 00113 // Pretty print table contents to a String. 00114 String list() const; 00115 00116 Record toRecord() const; 00117 00118 private: 00119 String _freqUnit, _smu2Unit, _elUnit, _euUnit; 00120 00121 SplatalogueTable(); 00122 //void _defineTable(const String& tablename, const uInt nrow); 00123 void _construct(const Bool setup); 00124 00125 void _addKeywords(); 00126 00127 00128 }; 00129 00130 00131 } //# NAMESPACE CASA - END 00132 00133 #endif