WSL/SLF GitLab Repository

MeteoProcessor.h 2.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/***********************************************************************************/
/*  Copyright 2009 WSL Institute for Snow and Avalanche Research    SLF-DAVOS      */
/***********************************************************************************/
/* This file is part of MeteoIO.
    MeteoIO is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    MeteoIO is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with MeteoIO.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __METEOPROCESSOR_H__
#define __METEOPROCESSOR_H__

#include <meteoio/MeteoData.h>
#include <meteoio/StationData.h>
23
#include <meteoio/Config.h>
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <meteoio/MeteoFilter.h>
#include <meteoio/Meteo1DInterpolator.h>

#include <vector>

namespace mio {

/**
 * @class MeteoProcessor
 * @brief A facade class that invokes the processing of the filters and the resampling
 * @author Thomas Egger
 * @date   2010-06-25
 */

class MeteoProcessor {
	public:
40
		MeteoProcessor(const Config& _cfg);
41
42
43

		/**
		 * @brief A function that executes all the filters that have been setup in the constructor
44
		 * @param[in] date The requested date for a MeteoData object
45
46
47
48
49
50
		 * @param[in] vecM The raw sequence of MeteoData objects for a given station
		 * @param[in] vecS The meta data for the MeteoData objects in vecM
		 * @param[out] md The MeteoData object to be returned
		 * @param[out] sd The associated StationData object for md
		 */
		void processData(const Date& date, const std::vector<MeteoData>& vecM, const std::vector<StationData>& vecS, 
51
		                 MeteoData& md, StationData& sd);
52

53
54
		friend std::ostream& operator<<(std::ostream& os, const MeteoProcessor& data);

55
 	private:
56
		Config cfg;
57
58
59
60
61
62
		MeteoFilter mf;
		Meteo1DInterpolator mi1d;
};
} //end namespace

#endif