LCOV - code coverage report
Current view: top level - synthesis/CalTables - GJonesMCol.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 36 0.0 %
Date: 2024-10-04 16:51:10 Functions: 0 4 0.0 %

          Line data    Source code
       1             : //# GJonesMCol.cc: Implementation of GJonesMCol.h
       2             : //# Copyright (C) 1996,1997,1998,2001,2002,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/GJonesMCol.h>
      30             : 
      31             : using namespace casacore;
      32             : namespace casa { //# NAMESPACE CASA - BEGIN
      33             : 
      34             : //----------------------------------------------------------------------------
      35             : 
      36           0 : ROGJonesPolyMCol::ROGJonesPolyMCol (const GJonesPolyTable& gjpTable) :
      37           0 :   ROGJonesMCol (gjpTable)
      38             : {
      39             : // Construct from a calibration table
      40             : // Input:
      41             : //    gjpTable          const GJonesPolyTable&      GJonesPoly cal. table
      42             : // Output to private data:
      43             : //    ROGJonesMCol            ROGJonesMCol          Read-only GJones cal 
      44             : //                                                  main columns
      45             : //    polyType_p              ROScalarCol<String>   Polynomial type 
      46             : //    polyMode_p              ROScalarCol<String>   Polynomial mode (e.g. A&P)
      47             : //    scaleFactor_p           ROScalarCol<Complex>  Polynomial scale factor
      48             : //    nPolyAmp_p              ROScalarCol<Int>      Polynomial degree (amp)
      49             : //    nPolyPhase_p            ROScalarCol<Int>      Polynomial degree (phase)
      50             : //    polyCoeffAmp_p          ROArrayCol<Double>    Polynomial coeff. (amp)
      51             : //    polyCoeffPhase_p        ROArrayCol<Double>    Polynomial coeff. (phase)
      52             : //    phaseUnits_p            ROScalarCol<String>   Phase units.
      53             : //
      54             :   // Attach all column accessors for additional GJonesPoly columns
      55             :   // (some are optional, depending on polynomial mode)
      56           0 :   attach (gjpTable, polyType_p, MSC::POLY_TYPE);
      57           0 :   attach (gjpTable, polyMode_p, MSC::POLY_MODE);
      58           0 :   attach (gjpTable, scaleFactor_p, MSC::SCALE_FACTOR);
      59           0 :   attach (gjpTable, nPolyAmp_p, MSC::N_POLY_AMP, true);
      60           0 :   attach (gjpTable, nPolyPhase_p, MSC::N_POLY_PHASE, true);
      61           0 :   attach (gjpTable, polyCoeffAmp_p, MSC::POLY_COEFF_AMP, true);
      62           0 :   attach (gjpTable, polyCoeffPhase_p, MSC::POLY_COEFF_PHASE, true);
      63           0 :   attach (gjpTable, phaseUnits_p, MSC::PHASE_UNITS, true);
      64           0 : };
      65             : 
      66             : //----------------------------------------------------------------------------
      67             : 
      68           0 : GJonesPolyMCol::GJonesPolyMCol (GJonesPolyTable& gjpTable) :
      69           0 :   GJonesMCol (gjpTable)
      70             : {
      71             : // Construct from a calibration table
      72             : // Input:
      73             : //    gjpTable                GJonesPolyTable&    GJonesPoly cal. table
      74             : // Output to private data:
      75             : //    GJonesMCol              GJonesMCol          Read-write GJones cal 
      76             : //                                                main columns
      77             : //    polyType_p              ScalarCol<String>   Polynomial type 
      78             : //    polyMode_p              ScalarCol<String>   Polynomial mode (e.g. A&P)
      79             : //    scaleFactor_p           ScalarCol<Complex>  Polynomial scale factor
      80             : //    nPolyAmp_p              ScalarCol<Int>      Polynomial degree (amp)
      81             : //    nPolyPhase_p            ScalarCol<Int>      Polynomial degree (phase)
      82             : //    polyCoeffAmp_p          ArrayCol<Double>    Polynomial coeff. (amp)
      83             : //    polyCoeffPhase_p        ArrayCol<Double>    Polynomial coeff. (phase)
      84             : //    phaseUnits_p            ScalarCol<String>   Phase units.
      85             : //
      86             :   // Attach all column accessors for additional GJonesPoly columns
      87             :   // (some are optional, depending on polynomial mode)
      88           0 :   attach (gjpTable, polyType_p, MSC::POLY_TYPE);
      89           0 :   attach (gjpTable, polyMode_p, MSC::POLY_MODE);
      90           0 :   attach (gjpTable, scaleFactor_p, MSC::SCALE_FACTOR);
      91           0 :   attach (gjpTable, nPolyAmp_p, MSC::N_POLY_AMP, true);
      92           0 :   attach (gjpTable, nPolyPhase_p, MSC::N_POLY_PHASE, true);
      93           0 :   attach (gjpTable, polyCoeffAmp_p, MSC::POLY_COEFF_AMP, true);
      94           0 :   attach (gjpTable, polyCoeffPhase_p, MSC::POLY_COEFF_PHASE, true);
      95           0 :   attach (gjpTable, phaseUnits_p, MSC::PHASE_UNITS, true);
      96           0 : };
      97             : 
      98             : //----------------------------------------------------------------------------
      99             : 
     100           0 : ROGJonesSplineMCol::ROGJonesSplineMCol (const GJonesSplineTable& gjsTable) :
     101           0 :   ROGJonesPolyMCol (gjsTable)
     102             : {
     103             : // Construct from a calibration table
     104             : // Input:
     105             : //    gjsTable          const GJonesSplineTable&    GJonesSpline cal. table
     106             : // Output to private data:
     107             : //    ROGJonesPolyMCol        ROGJonesMCol          Read-only GJonesPoly cal 
     108             : //                                                  main columns
     109             : //    nKnotsAmp_p             ROScalarCol<Int>      No. spline knots in amp.
     110             : //    nKnotsPhase_p           ROScalarCol<Int>      No. spline knots in phase
     111             : //    splineKnotsAmp_p        ROScalarCol<Double>   Spline knot positions (amp)
     112             : //    splineKnotsPhase_p      ROScalarCol<Double>   Spline knot posn. (phase)
     113             : //
     114             :   // Attach all column accessors for additional GJonesSpline columns
     115             :   // (all are optional, dependent on polynomial mode)
     116           0 :   attach (gjsTable, nKnotsAmp_p, MSC::N_KNOTS_AMP, true);
     117           0 :   attach (gjsTable, nKnotsPhase_p, MSC::N_KNOTS_PHASE, true);
     118           0 :   attach (gjsTable, splineKnotsAmp_p, MSC::SPLINE_KNOTS_AMP, true);
     119           0 :   attach (gjsTable, splineKnotsPhase_p, MSC::SPLINE_KNOTS_PHASE, true);
     120           0 : };
     121             : 
     122             : //----------------------------------------------------------------------------
     123             : 
     124           0 : GJonesSplineMCol::GJonesSplineMCol (GJonesSplineTable& gjsTable) :
     125           0 :   GJonesPolyMCol (gjsTable)
     126             : {
     127             : // Construct from a calibration table
     128             : // Input:
     129             : //    gjsTable                GJonesSplineTable&  GJonesSpline cal. table
     130             : // Output to private data:
     131             : //    GJonesMCol              GJonesMCol          Read-write GJonesPoly cal 
     132             : //                                                main columns
     133             : //    nKnotsAmp_p             ScalarCol<Int>      No. spline knots in amp.
     134             : //    nKnotsPhase_p           ScalarCol<Int>      No. spline knots in phase
     135             : //    splineKnotsAmp_p        ScalarCol<Double>   Spline knot positions (amp)
     136             : //    splineKnotsPhase_p      ScalarCol<Double>   Spline knot posn. (phase)
     137             : //
     138             :   // Attach all column accessors for additional GJonesSpline columns
     139             :   // (all are optional, dependent on polynomial mode)
     140           0 :   attach (gjsTable, nKnotsAmp_p, MSC::N_KNOTS_AMP, true);
     141           0 :   attach (gjsTable, nKnotsPhase_p, MSC::N_KNOTS_PHASE, true);
     142           0 :   attach (gjsTable, splineKnotsAmp_p, MSC::SPLINE_KNOTS_AMP, true);
     143           0 :   attach (gjsTable, splineKnotsPhase_p, MSC::SPLINE_KNOTS_PHASE, true);
     144           0 : };
     145             : 
     146             : //----------------------------------------------------------------------------
     147             : 
     148             : 
     149             : } //# NAMESPACE CASA - END
     150             : 

Generated by: LCOV version 1.16