Line data Source code
1 : //# EPointDesc.cc: Implementation of EPointDesc.h 2 : //# Copyright (C) 1996,1997,1998,1999,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: 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/EPointDesc.h> 30 : #include <synthesis/CalTables/SolvableVJDesc.h> 31 : #include <msvis/MSVis/MSCalEnums.h> 32 : #include <casacore/tables/Tables/ArrColDesc.h> 33 : 34 : using namespace casacore; 35 : namespace casa{ 36 : 37 0 : EPointDesc::EPointDesc() : SolvableVisJonesDesc("EPoint Jones") 38 0 : , itsTableDesc() 39 : { 40 0 : itsTableDesc.add(SolvableVisJonesDesc::calMainDesc()); 41 : // addCols(itsTableDesc); 42 0 : }; 43 : 44 0 : EPointDesc::EPointDesc (const String& type) : 45 0 : SolvableVisJonesDesc (type), itsTableDesc() 46 : { 47 : // Constructor for time-variable VisJones calibration table description (v2.0) 48 : // Inputs: 49 : // type const String& Cal table type (eg. "P Jones") 50 : // Output to private data: 51 : // itsFitDesc TableDesc Table descriptor for fit parameters 52 : // 53 : // Default fit statistics and weights 54 : // itsFitDesc.add (defaultFitDesc()); 55 0 : itsTableDesc.add(SolvableVisJonesDesc::calMainDesc()); 56 : // addCols(itsTableDesc); 57 : // cerr << "EPointDesc::EPointDesc()" << endl; 58 0 : }; 59 : //---------------------------------------------------------------------------- 60 : 61 0 : TableDesc EPointDesc::calMainDesc() 62 : { 63 0 : return addCols(itsTableDesc); 64 : }; 65 : 66 0 : TableDesc EPointDesc::addCols(TableDesc& td) 67 : { 68 : // TableDesc td; 69 : 70 : // GJones descriptor 71 : // td.add (SolvableVisJonesDesc::calMainDesc()); 72 : 73 : // Add POINTING_OFFSET column 74 : // cerr << "EPointDesc::addCols() " << MSC::fieldName(MSC::POINTING_OFFSET) << endl; 75 0 : td.addColumn (ArrayColumnDesc<Float> 76 0 : (MSC::fieldName (MSC::POINTING_OFFSET))); 77 0 : return td; 78 : } 79 : }