19#ifndef RESAMPLINGSTACK_H
20#define RESAMPLINGSTACK_H
41 bool isEmpty()
const {
return stack.empty();}
45 double getAlgoMaxGapSize(
const Config& cfg,
const size_t& algo_index,
const std::string& parname)
const;
46 double getStackMaxGapSize(
const double& fallback)
const;
47 void processAlgorithm(
const Config& cfg,
const std::string& parname,
48 const std::pair<std::string, std::string>& key_algo,
51 static size_t extractAlgorithmIndex(
const std::string& key);
52 static void checkDeprecatedSyntax(
const Config& cfg,
const std::string& parname,
53 const std::string& algo_name);
54 void handleAccumulateAlgorithm(std::vector<std::pair<std::string, std::string>>& vecArgs,
55 const std::string& algo_name,
61 std::vector<std::shared_ptr<ResamplingAlgorithms>> stack;
62 static const std::string interpol_section, interpol_pattern, arguments_ini_key;
63 const std::string gap_size_key;
64 const double max_gap_size_dflt, max_stack_gap_size;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition Config.h:79
Stores information about a data gap in a time series.
Definition ResamplingAlgorithms.h:46
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition MeteoData.h:110
ResamplingPosition
Definition ResamplingAlgorithms.h:146
Definition ResamplingStack.h:32
std::string getStackStr() const
Definition ResamplingStack.cc:200
void resample(const std::string &stationHash, const size_t &pos, const ResamplingAlgorithms::ResamplingPosition elementpos, const size_t ¶mindex, const std::vector< MeteoData > &vecM, MeteoData &md) const
Perform the resampling for a specific data point.
Definition ResamplingStack.cc:171
std::vector< std::shared_ptr< ResamplingAlgorithms > > buildStack(const ResamplingAlgorithms::gap_info &gap) const
void resetResampling()
Definition ResamplingStack.cc:153
bool isEmpty() const
Definition ResamplingStack.h:41
OperationMode
Keywords for mode of operation. Please keep all the GRID_xxx last!
Definition IOUtils.h:64
@ STD
default: extract timeseries from timeseries or grids from grids or spatially interpolate timeseries
Definition IOUtils.h:65