18 #ifndef TIMESERIESMANAGER_H
19 #define TIMESERIESMANAGER_H
52 std::vector< METEO_SET >& vecVecMeteo);
83 const std::vector< METEO_SET >& vecMeteo);
86 const std::vector< MeteoData >& vecMeteo,
const bool& invalidate_cache=
true);
123 void writeMeteoData(
const std::vector< METEO_SET >& vecMeteo,
const std::string& name=
"");
173 void setDfltBufferProperties();
174 void fill_filtered_cache();
175 void fillRawBuffer(
const Date& date_start,
const Date& date_end);
183 std::map<Date, METEO_SET > point_cache;
189 unsigned int processing_level;
Definition: ProcessingBlock.h:33
void setMinBufferRequirements(const double &buffer_size, const double &buff_before)
Set buffer window properties requirements as known to the application itself. This will compare these...
Definition: TimeSeriesManager.cc:70
size_t getMeteoData(const Date &dateStart, const Date &dateEnd, std::vector< METEO_SET > &vecVecMeteo)
Fill vecMeteo with a time series of objects corresponding to the interval indicated by dateStart and ...
Definition: TimeSeriesManager.cc:149
double getAvgSamplingRate() const
Returns the average sampling rate in the data. This computes the average sampling rate of the data th...
Definition: TimeSeriesManager.cc:246
TimeSeriesManager(IOHandler &in_iohandler, const Config &in_cfg)
Definition: TimeSeriesManager.cc:27
A class to buffer meteorological data. This class buffers MeteoData objects. It is currently NOT a pr...
Definition: Buffer.h:38
Date getRawBufferStart() const
Returns the begining of the raw buffer. This is the start date of the request that was given to the I...
Definition: TimeSeriesManager.h:162
std::vector< MeteoData > METEO_SET
Definition: MeteoData.h:29
void writeMeteoData(const std::vector< METEO_SET > &vecMeteo, const std::string &name="")
Definition: TimeSeriesManager.cc:241
void setProcessingLevel(const unsigned int &i_level)
Set the desired ProcessingLevel of the TimeSeriesManager instance The processing level affects the wa...
Definition: TimeSeriesManager.cc:85
void add_to_points_cache(const Date &i_date, const METEO_SET &vecMeteo)
Add a METEO_SET for a specific instance to the point cache. This is a way to manipulate MeteoData var...
Definition: TimeSeriesManager.cc:264
ProcessingLevel
Definition: IOUtils.h:51
A class to generate meteo data from user-selected models or parametrizations. This class sits in betw...
Definition: DataGenerator.h:43
This class is the class to use for raw I/O operations. It is responsible for transparently loading th...
Definition: IOHandler.h:36
Date getBufferEnd() const
Returns the end of the buffer. This is the end date of the request that was given to the IOHandler...
Definition: Buffer.cc:256
std::vector< StationData > STATIONS_SET
Definition: StationData.h:129
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:58
const Config getConfig() const
Returns a copy of the internal Config object. This is convenient to clone an iomanager.
Definition: TimeSeriesManager.h:147
Date getBufferStart() const
Returns the begining of the buffer. This is the start date of the request that was given to the IOHan...
Definition: Buffer.cc:251
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
size_t getStationData(const Date &date, STATIONS_SET &vecStation)
Definition: TimeSeriesManager.cc:140
IOHandler & getIOHandler() const
Returns a copy of the internal IOHandler object. This is convenient to clone an iomanager.
Definition: TimeSeriesManager.h:154
A facade class that invokes the processing of the filters and the resampling.
Definition: MeteoProcessor.h:38
Date getRawBufferEnd() const
Returns the end of the raw buffer. This is the end date of the request that was given to the IOHandle...
Definition: TimeSeriesManager.h:170
void clear_cache()
Clear the point cache. All resampled values are dismissed, will need to be recalculated.
Definition: TimeSeriesManager.cc:274
Definition: TimeSeriesManager.h:31
void push_meteo_data(const IOUtils::ProcessingLevel &level, const Date &date_start, const Date &date_end, const std::vector< METEO_SET > &vecMeteo)
Push a vector of time series of MeteoData objects into the TimeSeriesManager. This overwrites any int...
Definition: TimeSeriesManager.cc:93
const std::string toString() const
Definition: TimeSeriesManager.cc:318