A class that can resample MeteoData objects.
- Author
- Thomas Egger
- Date
- 2010-06-24
#include <Meteo1DInterpolator.h>
◆ Meteo1DInterpolator() [1/2]
The default constructor Set up the interpolation algorithm for each parameter Init tasklist: a vector that holds one std::string for each parameter, representing the interpolation algorithm that will be executed for the respective parameter e.g. tasklist for TA: linear taskargs: a vector that holds the respective arguments for the algorithms as a std::vector<std::string>, so there can be multiple arguments.
- Parameters
-
◆ Meteo1DInterpolator() [2/2]
◆ getWindowSize()
◆ operator=()
◆ resampleData()
bool mio::Meteo1DInterpolator::resampleData |
( |
const Date & |
date, |
|
|
const std::string & |
stationHash, |
|
|
const std::vector< MeteoData > & |
vecM, |
|
|
MeteoData & |
md |
|
) |
| |
A function that executes all the resampling algorithms that have been setup in the constructor.
- Parameters
-
[in] | date | The requested date for a MeteoData object (to be resampled if not present) |
[in] | stationHash | A unique identifier for each timeseries (that could be used as an index for caching) |
[in] | vecM | A vector of MeteoData where the new object will be inserted if not present |
[in] | md | new MeteoData element, filled with the resampled values |
- Returns
- true if successfull, false if no resampling was possible (no element created)
◆ resetResampling()
void mio::Meteo1DInterpolator::resetResampling |
( |
| ) |
|
◆ toString()
const std::string mio::Meteo1DInterpolator::toString |
( |
| ) |
const |
◆ arg_pattern
const std::string mio::Meteo1DInterpolator::arg_pattern |
|
static |
◆ interpol_pattern
const std::string mio::Meteo1DInterpolator::interpol_pattern |
|
static |
◆ interpol_section
const std::string mio::Meteo1DInterpolator::interpol_section |
|
static |
The documentation for this class was generated from the following files: