Line data Source code
1 : //# SolvableVJMCol.cc: Implementation of SolvableVJMCol.h 2 : //# Copyright (C) 1996,1997,1998,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: casa-feedback@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/SolvableCalSetMCol.h> 30 : 31 : namespace casa { //# NAMESPACE CASA - BEGIN 32 : 33 : //---------------------------------------------------------------------------- 34 : 35 : template<class T> 36 0 : ROSolvableCalSetMCol<T>::ROSolvableCalSetMCol (const CalTable2& 37 : svjTable): 38 0 : ROCalMainColumns2<T>(svjTable) 39 : { 40 : // Construct from a calibration table 41 : // casacore::Input: 42 : // svjTable const SolvableCalSetTable& SVJ calibration table 43 : // Output to private data: 44 : // ROTimeVarVisJonesMCol ROTimeVarVisJonesMCol Read-only TVVJ 45 : // cal main col 46 : // Attach all column accessors for additional SolvableCalSet columns 47 : // (all of which are required columns) 48 0 : ROCalMainColumns2<T>::attach (svjTable, totalSolnOk_p, MSC::TOTAL_SOLUTION_OK); 49 0 : ROCalMainColumns2<T>::attach (svjTable, totalFit_p, MSC::TOTAL_FIT); 50 0 : ROCalMainColumns2<T>::attach (svjTable, totalFitWgt_p, MSC::TOTAL_FIT_WEIGHT); 51 0 : ROCalMainColumns2<T>::attach (svjTable, solnOk_p, MSC::SOLUTION_OK); 52 0 : ROCalMainColumns2<T>::attach (svjTable, fit_p, MSC::FIT); 53 0 : ROCalMainColumns2<T>::attach (svjTable, fitWgt_p, MSC::FIT_WEIGHT); 54 0 : ROCalMainColumns2<T>::attach (svjTable, flag_p, MSC::FLAG); 55 0 : ROCalMainColumns2<T>::attach (svjTable, snr_p, MSC::SNR); 56 0 : }; 57 : 58 : //---------------------------------------------------------------------------- 59 : 60 : template<class T> 61 0 : SolvableCalSetMCol<T>::SolvableCalSetMCol (CalTable2& svjTable) : 62 0 : CalMainColumns2<T> (svjTable) 63 : { 64 : // Construct from a calibration table 65 : // casacore::Input: 66 : // svjTable SolvableCalSetTable& SVJ calibration table 67 : // Output to private data: 68 : // TimeVarVisJonesMCol TimeVarVisJonesMCol Read-write TVVJ 69 : // cal main col 70 : // Attach all column accessors for additional SolvableCalSet columns 71 : // (all of which are required columns) 72 0 : CalMainColumns2<T>::attach (svjTable, totalSolnOk_p, MSC::TOTAL_SOLUTION_OK); 73 0 : CalMainColumns2<T>::attach (svjTable, totalFit_p, MSC::TOTAL_FIT); 74 0 : CalMainColumns2<T>::attach (svjTable, totalFitWgt_p, MSC::TOTAL_FIT_WEIGHT); 75 0 : CalMainColumns2<T>::attach (svjTable, solnOk_p, MSC::SOLUTION_OK); 76 0 : CalMainColumns2<T>::attach (svjTable, fit_p, MSC::FIT); 77 0 : CalMainColumns2<T>::attach (svjTable, fitWgt_p, MSC::FIT_WEIGHT); 78 0 : CalMainColumns2<T>::attach (svjTable, flag_p, MSC::FLAG); 79 0 : CalMainColumns2<T>::attach (svjTable, snr_p, MSC::SNR); 80 0 : }; 81 : 82 : //---------------------------------------------------------------------------- 83 : 84 : 85 : } //# NAMESPACE CASA - END 86 :