Line data Source code
1 : //# SolvableVJDesc.cc: Implementation of SolvableVJDesc.h 2 : //# Copyright (C) 1996,1997,1998,2000,2001,2003 3 : //# Associated Universities, Inc. Washington DC, USA. 4 : //# 5 : //# This library is free software; you can redistribute it and/or modify it 6 : //# under the terms of the GNU Library General Public License as published by 7 : //# the Free Software Foundation; either version 2 of the License, or (at your 8 : //# option) any later version. 9 : //# 10 : //# This library is distributed in the hope that it will be useful, but WITHOUT 11 : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 : //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 13 : //# License for more details. 14 : //# 15 : //# You should have received a copy of the GNU Library General Public License 16 : //# along with this library; if not, write to the Free Software Foundation, 17 : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 18 : //# 19 : //# Correspondence concerning AIPS++ should be addressed as follows: 20 : //# Internet email: aips2-request@nrao.edu. 21 : //# Postal address: AIPS++ Project Office 22 : //# National Radio Astronomy Observatory 23 : //# 520 Edgemont Road 24 : //# Charlottesville, VA 22903-2475 USA 25 : //# 26 : //# $Id$ 27 : //---------------------------------------------------------------------------- 28 : 29 : #include <synthesis/CalTables/SolvableVJDesc.h> 30 : #include <msvis/MSVis/MSCalEnums.h> 31 : #include <casacore/tables/Tables/ArrColDesc.h> 32 : 33 : using namespace casacore; 34 : namespace casa { //# NAMESPACE CASA - BEGIN 35 : 36 : //---------------------------------------------------------------------------- 37 : 38 0 : SolvableVisJonesDesc::SolvableVisJonesDesc() : TimeVarVisJonesDesc(), 39 0 : itsFitDesc() 40 : { 41 : // Default null constructor for solvable VisJones calibration 42 : // table description (v2.0) 43 : // Output to private data: 44 : // itsFitDesc TableDesc Table descriptor for fit parameters 45 : // 46 : // Default fit statistics and weights 47 0 : itsFitDesc.add (defaultFitDesc()); 48 0 : }; 49 : 50 : //---------------------------------------------------------------------------- 51 : 52 0 : SolvableVisJonesDesc::SolvableVisJonesDesc (const String& type) : 53 0 : TimeVarVisJonesDesc (type), itsFitDesc() 54 : { 55 : // Constructor for time-variable VisJones calibration table description (v2.0) 56 : // Inputs: 57 : // type const String& Cal table type (eg. "P Jones") 58 : // Output to private data: 59 : // itsFitDesc TableDesc Table descriptor for fit parameters 60 : // 61 : // Default fit statistics and weights 62 0 : itsFitDesc.add (defaultFitDesc()); 63 0 : }; 64 : 65 : //---------------------------------------------------------------------------- 66 : 67 0 : TableDesc SolvableVisJonesDesc::calMainDesc() 68 : { 69 : // Return the cal_main table descriptor 70 : // Output: 71 : // calMainDesc TableDesc cal_main table descriptor 72 : // 73 : // TimeVarVisJones descriptor 74 0 : TableDesc td (TimeVarVisJonesDesc::calMainDesc()); 75 : 76 : // Add fit statistics and weights 77 0 : td.add (itsFitDesc); 78 : 79 0 : return td; 80 : }; 81 : 82 : //---------------------------------------------------------------------------- 83 : 84 0 : GJonesDesc::GJonesDesc() : SolvableVisJonesDesc("G Jones") 85 : { 86 : // Default null constructor for GJones calibration table description (v2.0) 87 0 : }; 88 : 89 : //---------------------------------------------------------------------------- 90 : 91 0 : DJonesDesc::DJonesDesc() : SolvableVisJonesDesc("D Jones") 92 : { 93 : // Default null constructor for DJones calibration table description (v2.0) 94 0 : }; 95 : 96 : //---------------------------------------------------------------------------- 97 : 98 0 : TJonesDesc::TJonesDesc() : SolvableVisJonesDesc("T Jones") 99 : { 100 : // Default null constructor for TJones calibration table description (v2.0) 101 0 : }; 102 : 103 : //---------------------------------------------------------------------------- 104 : 105 0 : GJonesDelayRateSBDesc::GJonesDelayRateSBDesc() : GJonesDesc() 106 : { 107 0 : }; 108 : 109 : //---------------------------------------------------------------------------- 110 : 111 0 : TableDesc GJonesDelayRateSBDesc::calMainDesc() 112 : { 113 : // Return the cal_main table descriptor 114 : // Output: 115 : // calMainDesc TableDesc cal_main table descriptor 116 0 : TableDesc td; 117 : 118 : // GJones descriptor 119 0 : td.add (GJonesDesc::calMainDesc()); 120 : 121 : // Add PHASE_OFFSET, SB_DELAY, DELAY_RATE columns: 122 0 : td.addColumn (ArrayColumnDesc <Float> 123 0 : (MSC::fieldName (MSC::PHASE_OFFSET))); 124 0 : td.addColumn (ArrayColumnDesc <Float> 125 0 : (MSC::fieldName (MSC::SB_DELAY))); 126 0 : td.addColumn (ArrayColumnDesc <Float> 127 0 : (MSC::fieldName (MSC::DELAY_RATE))); 128 : 129 0 : return td; 130 : }; 131 : 132 : 133 : 134 : 135 : 136 : 137 : 138 : } //# NAMESPACE CASA - END 139 :