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:102
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
void resetResampling()
Call each ResamplingAlgorithms to reset its cached data (as might be needed after a rebuffer)
Definition Meteo1DInterpolator.cc:277
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition MeteoData.h:108
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:111
void getWindowSize(ProcessingProperties &o_properties) const
Definition MeteoProcessor.cc:73
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:99
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:127
const std::string toString() const
Definition MeteoProcessor.cc:174
void resetResampling()
Definition MeteoProcessor.h:69
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:43
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:223
RestrictionsIdx()
Definition MeteoProcessor.h:113
size_t getEnd() const
Definition MeteoProcessor.cc:229
const std::string toString() const
Definition MeteoProcessor.cc:245
RestrictionsIdx & operator++()
Definition MeteoProcessor.cc:235
const size_t npos
npos is the out-of-range value
Definition IOUtils.h:81
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