A class that can resample MeteoData objects.
#include <Meteo1DInterpolator.h>
Public Member Functions | |
Meteo1DInterpolator (const Config &in_cfg, const char &rank=1, const IOUtils::OperationMode &mode=IOUtils::STD) | |
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. More... | |
Meteo1DInterpolator (const Meteo1DInterpolator &org)=default | |
~Meteo1DInterpolator () | |
bool | 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. More... | |
void | resetResampling () |
Call each ResamplingAlgorithms to reset its cached data (as might be needed after a rebuffer) More... | |
void | getWindowSize (ProcessingProperties &o_properties) const |
Meteo1DInterpolator & | operator= (const Meteo1DInterpolator &) |
Assignement operator. More... | |
const std::string | toString () const |
mio::Meteo1DInterpolator::Meteo1DInterpolator | ( | const Config & | in_cfg, |
const char & | rank = 1 , |
||
const IOUtils::OperationMode & | mode = IOUtils::STD |
||
) |
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.
[in] | in_cfg | Config object that holds the MeteoFilter configuration in the [Filters] section |
[in] | rank | in case of multiple TimeSeriesManager, rank in the stack? (default: 1) |
[in] | mode | spatial resampling operation mode (see IOUtils::OperationMode), default IOUtils::STD |
|
default |
mio::Meteo1DInterpolator::~Meteo1DInterpolator | ( | ) |
void mio::Meteo1DInterpolator::getWindowSize | ( | ProcessingProperties & | o_properties | ) | const |
Meteo1DInterpolator & mio::Meteo1DInterpolator::operator= | ( | const Meteo1DInterpolator & | source | ) |
Assignement operator.
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.
[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 |
void mio::Meteo1DInterpolator::resetResampling | ( | ) |
Call each ResamplingAlgorithms to reset its cached data (as might be needed after a rebuffer)
const std::string mio::Meteo1DInterpolator::toString | ( | ) | const |