casa
$Rev:20696$
|
00001 //# CTDesc.h: Define the format of NewCalTable 00002 //# Copyright (C) 2011 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 adressed 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: CTDesc.h 23338 2013-03-21 04:03:20Z george.moellenbrock $ 00028 00029 #ifndef CALIBRATION_CTDESC_H 00030 #define CALIBRATION_CTDESC_H 00031 00032 #include <casa/aips.h> 00033 #include <tables/Tables/Table.h> 00034 #include <tables/Tables/TableDesc.h> 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 // <summary> 00039 // CTDesc: Define the format of calibration tables 00040 // </summary> 00041 00042 // <use visibility=export> 00043 00044 // <reviewed reviewer="" date="" tests="" demos=""> 00045 00046 // <prerequisite> 00047 // <li> <linkto class="CalTable">CalTable</linkto> module 00048 // </prerequisite> 00049 // 00050 // <etymology> 00051 // From "Calibration table" and "descriptor". 00052 // </etymology> 00053 // 00054 // <synopsis> 00055 // CTDesc defines the format of NewCalTable in terms 00056 // of table descriptors <linkto class="TableDesc">TableDesc</linkto>, as 00057 // defined in the Table system. This is a base class and defines the 00058 // overall calibration table structure. Specializations for both 00059 // antenna-based (ViJones and SkyJones) and baseline-based (MJones) 00060 // calibration tables are provided through inheritance. At present this 00061 // set of classes returns the default calibration table descriptors for a 00062 // given calibration table type. 00063 // </etymology> 00064 // 00065 // <example> 00066 // <srcblock> 00067 // </srcblock> 00068 // </example> 00069 // 00070 // <motivation> 00071 // This inheritance tree defines the format of all calibration 00072 // table types, both antenna- and baseline-based, to provide 00073 // a unified and consistent interface to their representation 00074 // as aips++ tables. An overall structure common to all calibration 00075 // tables is maintained as far as possible, with common column 00076 // names throughout. This class tree is primarily used by 00077 // the <linkto class="CalTable"> CalTable</linkto> classes. 00078 // </motivation> 00079 // 00080 // <todo asof="98/01/01"> 00081 // Generate the calibration table descriptors from a VisSet or VisBuffer object 00082 // </todo> 00083 00084 class CTDesc 00085 { 00086 public: 00087 // Default null constructor, and destructor 00088 CTDesc(); 00089 virtual ~CTDesc() {}; 00090 00091 // Alternative ctor that enables OBS_ID opt-out 00092 CTDesc(Bool addObsId); 00093 00094 // Construct from some external info 00095 CTDesc (const String& partype, 00096 const String& msname="none", 00097 const String& viscal="unknown", 00098 const String& polbasis="circ"); 00099 00100 // Return the table descriptors for the main calibration table 00101 // and the cal_history and cal_desc sub-tables 00102 virtual TableDesc calMainDesc(); 00103 //virtual TableDesc calMainDesc(); 00104 //virtual TableDesc calHistoryDesc(); 00105 00106 protected: 00107 // a specified column name. 00108 TableDesc insertDesc (const TableDesc& tableDesc, const TableDesc& insert, 00109 const String& insertAfter); 00110 00111 private: 00112 // Generate the default sub-table descriptors 00113 TableDesc defaultCalMain (const String& partype="", 00114 const String& msname="none", 00115 const String& viscal="unknown", 00116 const String& polbasis="circ"); 00117 //TableDesc defaultCalHistory(); 00118 00119 00120 // Support (discouraged) ctor that can opt out of OBSERVATION_ID 00121 Bool addObsId_; 00122 00123 // Table descriptors 00124 TableDesc itsCalMainDesc; 00125 //TableDesc itsCalHistoryDesc; 00126 String MSName_p; 00127 String PolBasis_p; 00128 00129 00130 }; 00131 00132 00133 } //# NAMESPACE CASA - END 00134 00135 #endif