MeteoIODoc 2.11.0
GridTimeseriesResampling.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2/***********************************************************************************/
3/* Copyright 2021 MobyGIS Srl, Trento, Italy */
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
20#ifndef GRIDTIMESERIESRESAMPLING_H
21#define GRIDTIMESERIESRESAMPLING_H
22
23#include <string>
24#include <utility>
25#include <vector>
26
28
29namespace mio {
30
47 public:
48 GridTimeseriesResampling(const std::string& i_algoname, const std::string& i_parname, const double& dflt_window_size, const std::vector< std::pair<std::string, std::string> >& vecArgs);
49
50 void resample(const Date& date, const std::map<Date, Grid2DObject>& all_grids, Grid2DObject& resampled_grid);
51 std::string toString() const;
52
53 private:
54 std::vector< std::pair<std::string, std::string> > vecArgs_;
55 std::string base_algorithm_;
56};
57
58} //end namespace mio
59
60#endif
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
Interface class for grid resampling algorithms.
Definition: GridResamplingAlgorithms.h:38
This grid resampling class builds time series at all grid positions and sends them to meteo 1d resamp...
Definition: GridTimeseriesResampling.h:46
GridTimeseriesResampling(const std::string &i_algoname, const std::string &i_parname, const double &dflt_window_size, const std::vector< std::pair< std::string, std::string > > &vecArgs)
Constructor for a grid resampling algorithm.
Definition: GridTimeseriesResampling.cc:38
std::string toString() const
Print this algorithm's properties to a stream.
Definition: GridTimeseriesResampling.cc:53
void resample(const Date &date, const std::map< Date, Grid2DObject > &all_grids, Grid2DObject &resampled_grid)
Perform temporal grid resampling.
Definition: GridTimeseriesResampling.cc:69
Definition: Config.cc:31