19#ifndef METEOPROCESSOR_H
20#define METEOPROCESSOR_H
64 void process(std::vector< std::vector<MeteoData> >& ivec,
65 std::vector< std::vector<MeteoData> >& ovec,
const bool& second_pass=
false);
81 static std::set<std::string>
initStationSet(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& keyword);
91 static std::vector<DateRange>
initTimeRestrictions(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& keyword,
const std::string& where,
const double& TZ);
94 static std::set<std::string> getParameters(
const Config& cfg);
98 std::map<std::string, ProcessingStack*> processing_stack;
99 bool enable_meteo_filtering;
123 std::vector<size_t> start, end;
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:103
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:112
void resetResampling()
Call each ResamplingAlgorithms to reset its cached data (as might be needed after a rebuffer)
Definition: Meteo1DInterpolator.cc:182
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:107
A facade class that invokes the processing of the filters and the resampling.
Definition: MeteoProcessor.h:39
static std::set< std::string > initStationSet(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword)
built the set of station IDs that a filter should be applied to or excluded from
Definition: MeteoProcessor.cc:108
void getWindowSize(ProcessingProperties &o_properties) const
Definition: MeteoProcessor.cc:70
void process(std::vector< std::vector< MeteoData > > &ivec, std::vector< std::vector< MeteoData > > &ovec, const bool &second_pass=false)
A function that executes all the filters for all meteo parameters configuered by the user.
Definition: MeteoProcessor.cc:96
static std::vector< DateRange > initTimeRestrictions(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword, const std::string &where, const double &TZ)
built the set of time ranges to apply a certain processing to
Definition: MeteoProcessor.cc:124
const std::string toString() const
Definition: MeteoProcessor.cc:170
void resetResampling()
Definition: MeteoProcessor.h:69
MeteoProcessor(const Config &cfg, const char &rank=1, const IOUtils::OperationMode &mode=IOUtils::STD)
The default constructor - Set up a processing stack for each parameter The different stacks are creat...
Definition: MeteoProcessor.cc:27
bool resample(const Date &date, const std::string &stationHash, const std::vector< MeteoData > &ivec, MeteoData &md)
Definition: MeteoProcessor.h:67
~MeteoProcessor()
The destructor - It is necessary because the ProcessingStack objects referenced in the map<string,...
Definition: MeteoProcessor.cc:41
Definition: ProcessingBlock.h:36
Convenience class for processing data with time restriction periods.
Definition: MeteoProcessor.h:111
bool isValid() const
Definition: MeteoProcessor.h:116
size_t getStart() const
Definition: MeteoProcessor.cc:220
RestrictionsIdx()
Definition: MeteoProcessor.h:113
size_t getEnd() const
Definition: MeteoProcessor.cc:226
const std::string toString() const
Definition: MeteoProcessor.cc:242
RestrictionsIdx & operator++()
Definition: MeteoProcessor.cc:232
const size_t npos
npos is the out-of-range value
Definition: IOUtils.h:80
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
std::vector< MeteoData > METEO_SET
Definition: MeteoData.h:32