MeteoIODoc 2.11.0
ProcUndercatch_Forland.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 PROCUNDERCATCH_FORLAND_H
20#define PROCUNDERCATCH_FORLAND_H
21
23#include <vector>
24#include <string>
25
26namespace mio {
27
52 public:
53 ProcUndercatch_Forland(const std::vector< std::pair<std::string, std::string> >& vecArgs, const std::string& name, const Config& cfg);
54
55 virtual void process(const unsigned int& param, const std::vector<MeteoData>& ivec,
56 std::vector<MeteoData>& ovec);
57
58 private:
59 typedef enum SENSOR_TYPE {
60 wfj,
61 hellmann,
62 swedish,
63 norvegian,
64 finnish,
65 tretyakov,
66 belfort,
67 geonor
68 } sensor_type;
69
70 double solidPrecipitation(double TA, double VW) const;
71 double liquidPrecipitation(const double& Pint, double VW) const;
72 void parse_args(const std::vector< std::pair<std::string, std::string> >& vecArgs);
73
74 sensor_type type;
75 static const double Tsnow_WMO, Train_WMO;
76};
77
78} //end namespace
79
80#endif
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Correct precipitation for undercatch in winter conditions.
Definition: ProcUndercatch_Forland.h:51
virtual void process(const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: ProcUndercatch_Forland.cc:38
ProcUndercatch_Forland(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: ProcUndercatch_Forland.cc:31
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67
Definition: Config.cc:31