MeteoIODoc 20241222.207bde49
ProcShade.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2/***********************************************************************************/
3/* Copyright 2012 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 PROCSHADE_H
20#define PROCSHADE_H
21
23#include <meteoio/Config.h>
25#include <vector>
26#include <string>
27
28namespace mio {
29
69class ProcShade : public ProcessingBlock {
70 public:
71 ProcShade(const std::vector< std::pair<std::string, std::string> >& vecArgs, const std::string& name, const Config &i_cfg);
72 ~ProcShade();
73
74 virtual void process(const unsigned int& param, const std::vector<MeteoData>& ivec,
75 std::vector<MeteoData>& ovec);
76
77 private:
78 void parse_args(const std::vector< std::pair<std::string, std::string> >& vecArgs);
79 static std::vector< std::pair<double,double> > computeMask(const DEMObject& i_dem, const StationData& sd);
80
81 const Config &cfg;
82 DEMObject dem;
83 std::map< std::string , std::vector< std::pair<double,double> > > masks;
84 std::string horizons_outfile;
85 bool has_dem;
86
87 static const double diffuse_thresh;
88};
89
90} //end namespace
91
92#endif
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:40
Apply a shading mask to the Incoming or Reflected Short Wave Radiation.
Definition: ProcShade.h:69
~ProcShade()
Definition: ProcShade.cc:40
ProcShade(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &i_cfg)
Definition: ProcShade.cc:33
virtual void process(const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: ProcShade.cc:46
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:41
Definition: Config.cc:31