100 ProcShift(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
102 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
103 std::vector<MeteoData>& ovec);
106 typedef enum INTERPOL_TYPE {
112 void parse_args(
const std::vector< std::pair<std::string, std::string> >& vecArgs);
113 void writeOffsets(
const unsigned int& param,
const std::vector<MeteoData>& ivec);
114 void correctOffsets(
const unsigned int& param, std::vector<MeteoData>& ovec);
116 static bool isAllNodata(
const std::vector<ProcessingBlock::offset_spec>& vecX,
const size_t& startIdx,
const size_t& endIdx);
117 static double getMedianSampling(
const size_t& param,
const std::vector<MeteoData>& ivec);
119 std::vector<offset_spec> resampleVector(
const std::vector<MeteoData>& ivec,
const size_t& param)
const;
120 double getPearson(
const std::vector<ProcessingBlock::offset_spec>& vecX,
const std::vector<ProcessingBlock::offset_spec>& vecY,
const size_t& curr_idx,
const int& offset)
const;
121 int getOffsetFullScan(
const std::vector<ProcessingBlock::offset_spec>& vecX,
const std::vector<ProcessingBlock::offset_spec>& vecY,
const size_t& curr_idx,
const int& range_min,
const int& range_max)
const;
122 int getOffset(
const std::vector<ProcessingBlock::offset_spec>& vecX,
const std::vector<ProcessingBlock::offset_spec>& vecY,
const size_t& curr_idx)
const;
124 std::vector<ProcessingBlock::offset_spec> corrections;
125 std::string ref_param;
126 std::string root_path;
127 std::string offsets_file;
129 double sampling_rate;
133 interpol_type offsets_interp;
134 bool extract_offsets;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Time shifting filter for the selected meteo parameter.
Definition: ProcShift.h:98
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: ProcShift.cc:42
ProcShift(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: ProcShift.cc:33
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67