LCOV - code coverage report
Current view: top level - synthesis/CalTables - MJonesDesc.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 13 0.0 %
Date: 2024-10-04 18:58:15 Functions: 0 3 0.0 %

          Line data    Source code
       1             : //# MJonesDesc.cc: Implementation of MJonesDesc.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/MJonesDesc.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 : MJonesDesc::MJonesDesc() : CalTableDesc(), itsAnt2Desc()
      39             : {
      40             : // Default null constructor for the MJones cal table description (v2.0)
      41             : // Output to private data:
      42             : //    itsAnt2Desc     TableDesc    Table descriptor for second ant/feed index
      43             : //
      44             :   // Use the default second antenna index descriptor
      45           0 :   itsAnt2Desc.add (defaultAnt2Desc());
      46           0 : };
      47             : 
      48             : //----------------------------------------------------------------------------
      49             : 
      50           0 : TableDesc MJonesDesc::calMainDesc()
      51             : {
      52             : // Return the cal_main descriptor
      53             : // Output:
      54             : //    calMainDesc     TableDesc    cal_main table descriptor
      55             : //
      56             :   // Insert the second antenna/feed descriptor after the "FEED1"
      57             :   // column in the CalTable descriptor.
      58           0 :   TableDesc tdout (insertDesc (CalTableDesc::calMainDesc(), itsAnt2Desc,
      59           0 :                                "FEED1"));
      60           0 :   return tdout;
      61             : };
      62             : 
      63             : //----------------------------------------------------------------------------
      64             : 
      65           0 : TableDesc MJonesDesc::defaultAnt2Desc()
      66             : {
      67             : // Generate the default descriptor for the second antenna/feed index
      68             : // Output:
      69             : //    defaultAnt2Desc    TableDesc    Default second ant/feed descriptor
      70             : //
      71           0 :   TableDesc td;
      72           0 :   td.addColumn (ScalarColumnDesc <Int> (MSC::fieldName (MSC::ANTENNA2),
      73             :                                         ColumnDesc::Direct));
      74           0 :   td.addColumn (ScalarColumnDesc <Int> (MSC::fieldName (MSC::FEED2),
      75             :                                         ColumnDesc::Direct));
      76           0 :   return td;
      77           0 : };
      78             : 
      79             : //----------------------------------------------------------------------------
      80             : 
      81             : } //# NAMESPACE CASA - END
      82             : 

Generated by: LCOV version 1.16