Line data Source code
1 : //# FVisJonesDesc.cc: Implementation of FVisJonesDesc.h 2 : //# Copyright (C) 1996,1997,2000,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/FVisJonesDesc.h> 30 : #include <msvis/MSVis/MSCalEnums.h> 31 : #include <casacore/tables/Tables/ScaColDesc.h> 32 : 33 : using namespace casacore; 34 : namespace casa { //# NAMESPACE CASA - BEGIN 35 : 36 : //---------------------------------------------------------------------------- 37 : 38 0 : FVisJonesDesc::FVisJonesDesc() : TimeVarVisJonesDesc() 39 : { 40 0 : }; 41 : 42 : //---------------------------------------------------------------------------- 43 : 44 0 : FVisJonesDesc::FVisJonesDesc (const String& type) : 45 0 : TimeVarVisJonesDesc (type) 46 : { 47 0 : }; 48 : 49 0 : TableDesc FVisJonesDesc::calMainDesc() 50 : { 51 : // Return the cal_main table descriptor 52 : // Output: 53 : // calMainDesc TableDesc cal_main table descriptor 54 : // 55 0 : TableDesc td; 56 : 57 : // TimeVarVisJones descriptor 58 0 : td.add (TimeVarVisJonesDesc::calMainDesc()); 59 : 60 : // Add rotation measure and error 61 0 : td.addColumn (ScalarColumnDesc <Float> 62 0 : (MSC::fieldName (MSC::ROT_MEASURE), ColumnDesc::Direct)); 63 0 : td.addColumn (ScalarColumnDesc <Float> 64 0 : (MSC::fieldName (MSC::ROT_MEASURE_ERROR), ColumnDesc::Direct)); 65 : 66 0 : return td; 67 : }; 68 : 69 0 : FVisJonesIonoDesc::FVisJonesIonoDesc() : FVisJonesDesc() 70 : { 71 0 : }; 72 : 73 : //---------------------------------------------------------------------------- 74 : 75 0 : FVisJonesIonoDesc::FVisJonesIonoDesc (const String& type) : 76 0 : FVisJonesDesc (type) 77 : { 78 0 : }; 79 : 80 0 : TableDesc FVisJonesIonoDesc::calMainDesc() 81 : { 82 : // Return the cal_main table descriptor 83 : // Output: 84 : // calMainDesc TableDesc cal_main table descriptor 85 : // 86 0 : TableDesc td; 87 : 88 : // TimeVarVisJones descriptor 89 0 : td.add (FVisJonesDesc::calMainDesc()); 90 : 91 : // Add ionospheric TEC and error 92 0 : td.addColumn (ScalarColumnDesc <Float> 93 0 : (MSC::fieldName (MSC::IONOSPH_TEC), ColumnDesc::Direct)); 94 0 : td.addColumn (ScalarColumnDesc <Float> 95 0 : (MSC::fieldName (MSC::IONOSPH_TEC_ERROR), ColumnDesc::Direct)); 96 : 97 0 : return td; 98 : }; 99 : 100 : 101 : 102 : } //# NAMESPACE CASA - END 103 :