MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Meteo1DInterpolator.h
Go to the documentation of this file.
1 /***********************************************************************************/
2 /* Copyright 2009 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
3 /***********************************************************************************/
4 /* This file is part of MeteoIO.
5  MeteoIO is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  MeteoIO 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
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with MeteoIO. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef METEO1DINTERPOLATOR_H
19 #define METEO1DINTERPOLATOR_H
20 
22 #include <meteoio/Config.h>
24 #include <meteoio/meteoFilters/ProcessingBlock.h> //for ProcessingProperties
25 
26 #include <string>
27 #include <vector>
28 #include <map>
29 
30 namespace mio {
31 
42  public:
43 
56  Meteo1DInterpolator(const Config& in_cfg);
57 
59 
67  bool resampleData(const Date& date, const std::vector<MeteoData>& vecM, MeteoData& md);
68 
69  void getWindowSize(ProcessingProperties& o_properties) const;
70 
72  const std::string toString() const;
73 
74  private:
75  std::string getInterpolationForParameter(const std::string& parname, std::vector<std::string>& vecArguments) const;
76 
77  std::map< std::string, ResamplingAlgorithms* > mapAlgorithms; //per parameter interpolation algorithms
78  const Config& cfg;
79  double window_size;
80  bool enable_resampling;
81 };
82 } //end namespace
83 
84 #endif
Definition: ProcessingBlock.h:33
void getWindowSize(ProcessingProperties &o_properties) const
Definition: Meteo1DInterpolator.cc:57
const std::string toString() const
Definition: Meteo1DInterpolator.cc:159
~Meteo1DInterpolator()
Definition: Meteo1DInterpolator.cc:50
A class that can resample MeteoData objects.
Definition: Meteo1DInterpolator.h:41
Meteo1DInterpolator & operator=(const Meteo1DInterpolator &)
Assignement operator.
Definition: Meteo1DInterpolator.cc:151
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:58
bool resampleData(const Date &date, const std::vector< MeteoData > &vecM, MeteoData &md)
A function that executes all the resampling algorithms that have been setup in the constructor...
Definition: Meteo1DInterpolator.cc:65
Meteo1DInterpolator(const Config &in_cfg)
The default constructor Set up the interpolation algorithm for each parameter Init tasklist: a vector...
Definition: Meteo1DInterpolator.cc:28
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:101