LCOV - code coverage report
Current view: top level - synthesis/CalTables - SolvableVJDesc.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 14 32 43.8 %
Date: 2024-11-06 17:42:47 Functions: 4 8 50.0 %

          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: 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/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           1 : SolvableVisJonesDesc::SolvableVisJonesDesc() : TimeVarVisJonesDesc(),
      39           1 :   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           1 :   itsFitDesc.add (defaultFitDesc());
      48           1 : };
      49             : 
      50             : //----------------------------------------------------------------------------
      51             : 
      52           3 : SolvableVisJonesDesc::SolvableVisJonesDesc (const String& type) : 
      53           3 :   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           3 :   itsFitDesc.add (defaultFitDesc());
      63           3 : };
      64             : 
      65             : //----------------------------------------------------------------------------
      66             : 
      67           1 : 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           1 :   TableDesc td (TimeVarVisJonesDesc::calMainDesc());
      75             :   
      76             :   // Add fit statistics and weights
      77           1 :   td.add (itsFitDesc);
      78             : 
      79           1 :   return td;
      80           0 : };
      81             : 
      82             : //----------------------------------------------------------------------------
      83             : 
      84           3 : GJonesDesc::GJonesDesc() : SolvableVisJonesDesc("G Jones")
      85             : {
      86             : // Default null constructor for GJones calibration table description (v2.0)
      87           3 : };
      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           0 : };
     131             : 
     132             : 
     133             : 
     134             : 
     135             : 
     136             : 
     137             : 
     138             : } //# NAMESPACE CASA - END
     139             : 

Generated by: LCOV version 1.16