MeteoIODoc 2.11.0
ListonWindAlgorithm.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 LISTONWINDALGORITHM_H
20#define LISTONWINDALGORITHM_H
21
23
24namespace mio {
25
50 public:
51 ListonWindAlgorithm(const std::vector< std::pair<std::string, std::string> >& vecArgs, const std::string& i_algo, const std::string& i_param, TimeSeriesManager& i_tsm);
52 virtual double getQualityRating(const Date& i_date);
53 virtual void calculate(const DEMObject& dem, Grid2DObject& grid);
54
55 protected:
58 std::vector<double> vecDataVW, vecDataDW;
59 double eta, scale, alpha;
60 size_t param_idx;
62};
63
64} //end namespace mio
65
66#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
Curvature/slope influenced wind interpolation algorithm.
Definition: ListonWindAlgorithm.h:49
double alpha
a scale parameter for calculating curvature, a scale parameter to smooth out the 1/dist and an expone...
Definition: ListonWindAlgorithm.h:59
std::vector< double > vecDataDW
vectors of extracted VW and DW
Definition: ListonWindAlgorithm.h:58
std::vector< double > vecDataVW
Definition: ListonWindAlgorithm.h:58
double eta
Definition: ListonWindAlgorithm.h:59
bool inputIsAllZeroes
Definition: ListonWindAlgorithm.h:61
Trend trend
Definition: ListonWindAlgorithm.h:57
ListonWindAlgorithm(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm)
Definition: ListonWindAlgorithm.cc:26
void simpleWindInterpolate(const DEMObject &dem, Grid2DObject &VW, Grid2DObject &DW)
Definition: ListonWindAlgorithm.cc:103
size_t param_idx
Definition: ListonWindAlgorithm.h:60
virtual void calculate(const DEMObject &dem, Grid2DObject &grid)
Definition: ListonWindAlgorithm.cc:79
virtual double getQualityRating(const Date &i_date)
Definition: ListonWindAlgorithm.cc:46
double scale
Definition: ListonWindAlgorithm.h:59
Definition: TimeSeriesManager.h:31
Definition: InterpolationAlgorithms.h:36
Definition: Config.cc:31