19#ifndef METEO1DINTERPOLATOR_H
20#define METEO1DINTERPOLATOR_H
80 void addAlgorithm(std::shared_ptr<ResamplingAlgorithms> algo,
const double& max_gap_size);
81 std::vector<std::shared_ptr<ResamplingAlgorithms>>
buildStack(
const ResamplingAlgorithms::gap_info& gap)
const;
89 std::vector<double> max_gap_sizes;
90 std::vector<std::shared_ptr<ResamplingAlgorithms>> stack;
143 std::vector< std::pair<std::string, std::string> > getArgumentsForAlgorithm(
const std::string& parname,
const std::string& algorithm)
const;
144 std::string getAlgorithmsForParameter(
const std::string& parname)
const;
146 void processAlgorithms(
const std::string& parname,
const std::vector<std::pair<int, std::string>>& vecAlgos, std::string base_parname=
"",
const IOUtils::OperationMode& mode=
IOUtils::STD,
const char& rank=1);
149 void addAlgorithmToStack(
const std::string& parname,
const std::string& algo_name ,
const std::vector<std::pair<std::string, std::string>>& vecArgs,
const double& i_max_gap_size);
150 void createDefaultAlgorithm(
const std::string &parname);
152 std::map< std::string, ResamplingStack > mapAlgorithms;
155 bool enable_resampling, data_qa_logs;
156 std::string gap_size_key;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition Config.h:79
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition Date.h:87
A class that can resample MeteoData objects.
Definition Meteo1DInterpolator.h:102
static const std::string interpol_section
Definition Meteo1DInterpolator.h:159
Meteo1DInterpolator(const Meteo1DInterpolator &org)=default
static const std::string arg_pattern
Definition Meteo1DInterpolator.h:161
void getWindowSize(ProcessingProperties &o_properties) const
Definition Meteo1DInterpolator.cc:189
static const std::string interpol_pattern
Definition Meteo1DInterpolator.h:160
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.
Definition Meteo1DInterpolator.cc:197
Meteo1DInterpolator & operator=(const Meteo1DInterpolator &)
Assignement operator.
Definition Meteo1DInterpolator.cc:292
void resetResampling()
Call each ResamplingAlgorithms to reset its cached data (as might be needed after a rebuffer)
Definition Meteo1DInterpolator.cc:277
const std::string toString() const
Definition Meteo1DInterpolator.cc:303
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition MeteoData.h:108
Definition ProcessingBlock.h:36
ResamplingPosition
Definition ResamplingAlgorithms.h:57
Definition Meteo1DInterpolator.h:76
std::string getStackStr() const
Definition Meteo1DInterpolator.cc:374
ResamplingStack()
Definition Meteo1DInterpolator.cc:324
void resample(const std::string &stationHash, const size_t &index, const ResamplingAlgorithms::ResamplingPosition elementpos, const size_t &par_idx, const std::vector< MeteoData > &vecM, MeteoData &md, const double &max_gap_size) const
Definition Meteo1DInterpolator.cc:356
std::vector< std::shared_ptr< ResamplingAlgorithms > > buildStack(const ResamplingAlgorithms::gap_info &gap) const
Definition Meteo1DInterpolator.cc:331
bool empty() const
Definition Meteo1DInterpolator.cc:372
void resetResampling()
Definition Meteo1DInterpolator.cc:344
void addAlgorithm(std::shared_ptr< ResamplingAlgorithms > algo, const double &max_gap_size)
Definition Meteo1DInterpolator.cc:326
OperationMode
Keywords for mode of operation. Please keep all the GRID_xxx last!
Definition IOUtils.h:63
@ STD
default: extract timeseries from timeseries or grids from grids or spatially interpolate timeseries
Definition IOUtils.h:64