LCOV - code coverage report
Current view: top level - atmosphere/ATM - ATMWVRMeasurement.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 21 0.0 %
Date: 2024-10-10 11:40:37 Functions: 0 5 0.0 %

          Line data    Source code
       1             : /*******************************************************************************
       2             :  * ALMA - Atacama Large Millimiter Array
       3             :  * (c) Instituto de Estructura de la Materia, 2009
       4             :  *
       5             :  * This library is free software; you can redistribute it and/or
       6             :  * modify it under the terms of the GNU Lesser General Public
       7             :  * License as published by the Free Software Foundation; either
       8             :  * version 2.1 of the License, or (at your option) any later version.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful,
      11             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      12             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      13             :  * Lesser General Public License for more details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public
      16             :  * License along with this library; if not, write to the Free Software
      17             :  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
      18             :  *
      19             :  * "@(#) $Id: ATMWVRMeasurement.cpp Exp $"
      20             :  *
      21             :  * who       when      what
      22             :  * --------  --------  ----------------------------------------------
      23             :  * pardo     24/03/09  created
      24             :  */
      25             : 
      26             : #include "ATMWVRMeasurement.h"
      27             : 
      28             : #include <stdio.h>
      29             : #include <iostream>
      30             : 
      31             : 
      32             : 
      33             : ATM_NAMESPACE_BEGIN
      34             : 
      35           0 : WVRMeasurement::WVRMeasurement()
      36             : {
      37           0 : }
      38             : 
      39           0 : WVRMeasurement::WVRMeasurement(const Angle &elevation,
      40           0 :                                const std::vector<Temperature> &measuredSkyBrightness)
      41             : {
      42           0 :   elevation_ = elevation;
      43           0 :   v_measuredSkyBrightness_ = measuredSkyBrightness;
      44           0 :   retrievedWaterVaporColumn_ = Length(-999, Length::UnitMilliMeter); // !< Retrieved zenith water vapor column for each event
      45           0 :   sigma_fittedSkyBrightness_ = Temperature(-999, Temperature::UnitKelvin); // !< Sigma on the fitted sky brightness temperatures (average sigma over the WVR channels for each event).
      46           0 :   for(unsigned int i = 0; i < v_measuredSkyBrightness_.size(); i++) {
      47           0 :     v_fittedSkyBrightness_.push_back(Temperature(-999, Temperature::UnitKelvin));
      48             :   } // !< Fitted sky brightness temperatures over all WVR channels for each event
      49           0 : }
      50           0 : WVRMeasurement::WVRMeasurement(const Angle &elevation,
      51             :                                const std::vector<Temperature> &measuredSkyBrightness,
      52             :                                const std::vector<Temperature> &fittedSkyBrightness,
      53             :                                const Length &retrievedWaterVaporColumn,
      54           0 :                                const Temperature &sigma_fittedSkyBrightness)
      55             : {
      56           0 :   elevation_ = elevation;
      57           0 :   v_measuredSkyBrightness_ = measuredSkyBrightness;
      58           0 :   v_fittedSkyBrightness_ = fittedSkyBrightness;
      59           0 :   retrievedWaterVaporColumn_ = retrievedWaterVaporColumn; // !< Retrieved zenith water vapor column for each event
      60           0 :   sigma_fittedSkyBrightness_ = sigma_fittedSkyBrightness; // !< Sigma on the fitted sky brightness temperatures (average sigma over the WVR channels for each event).
      61           0 : }
      62             : 
      63           0 : WVRMeasurement::~WVRMeasurement()
      64             : {
      65           0 : }
      66             : 
      67             : ATM_NAMESPACE_END

Generated by: LCOV version 1.16