MeteoIODoc 2.11.0
SwRadAlgorithm.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2/***********************************************************************************/
3/* Copyright 2013 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
4/***********************************************************************************/
5/* This file is part of MeteoIO.
6 MeteoIO is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 MeteoIO is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with MeteoIO. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef SWRADINTERPOLATION_H
20#define SWRADINTERPOLATION_H
21
24
25namespace mio {
26
52 public:
53 SWRadInterpolation(const std::vector< std::pair<std::string, std::string> >& vecArgs, const std::string& i_algo, const std::string& i_param, TimeSeriesManager& i_tsm,
55 virtual double getQualityRating(const Date& i_date);
56 virtual void calculate(const DEMObject& dem, Grid2DObject& grid);
57 private:
59 SunObject Sun;
60 std::vector<size_t> vecIdx;
61 double scale, alpha;
62 bool shading, project_on_slope;
63 static const double soil_albedo, snow_albedo, snow_thresh;
64};
65
66} //end namespace mio
67
68#endif
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:40
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:42
A class to perform 2D spatial interpolations. For more, see Spatial interpolations.
Definition: InterpolationAlgorithms.h:70
A class to spatially interpolate meteo parameters. For more, see Spatial interpolations.
Definition: Meteo2DInterpolator.h:97
Solar radiation interpolation with optional terrain shading.
Definition: SwRadAlgorithm.h:51
virtual void calculate(const DEMObject &dem, Grid2DObject &grid)
Definition: SwRadAlgorithm.cc:84
SWRadInterpolation(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm, Meteo2DInterpolator &i_mi)
Definition: SwRadAlgorithm.cc:30
virtual double getQualityRating(const Date &i_date)
Definition: SwRadAlgorithm.cc:48
A class to calculate Solar radiation characteristics This is largely based on M. Iqbal,...
Definition: Sun.h:37
Definition: TimeSeriesManager.h:31
Definition: Config.cc:31