A class to generate meteo data from user-selected models or parametrizations. This class sits in between the actual implementation of the various methods and the IOManager in order to offer some high level interface. It basically reads the arguments and creates the objects for the various data generators in its constructor and loop through the parameters and stations when called to fill the data.
- Author
- Mathias Bavay
#include <DataGenerator.h>
|
| DataGenerator (const Config &cfg, const std::set< std::string > ¶ms_to_generate=std::set< std::string >()) |
|
| DataGenerator (const DataGenerator &c) |
|
virtual | ~DataGenerator () |
|
void | fillMissing (METEO_SET &vecMeteo, const std::vector< METEO_SET > &fullDataset, const std::vector< size_t > &stations_idx) const |
| generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. More...
|
|
void | fillMissing (METEO_SET &vecMeteo) const |
| generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. With this version of the call, there is no ability to look for existing data point before/after the point to generate is missing point. More...
|
|
void | fillMissing (std::vector< METEO_SET > &vecVecMeteo) const |
| generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. More...
|
|
DataGenerator & | operator= (const DataGenerator &source) |
|
const std::string | toString () const |
|
◆ DataGenerator() [1/2]
mio::DataGenerator::DataGenerator |
( |
const Config & |
cfg, |
|
|
const std::set< std::string > & |
params_to_generate = std::set<std::string>() |
|
) |
| |
◆ DataGenerator() [2/2]
◆ ~DataGenerator()
mio::DataGenerator::~DataGenerator |
( |
| ) |
|
|
virtual |
◆ fillMissing() [1/3]
void mio::DataGenerator::fillMissing |
( |
METEO_SET & |
vecMeteo | ) |
const |
generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. With this version of the call, there is no ability to look for existing data point before/after the point to generate is missing point.
- Parameters
-
vecMeteo | vector containing one point for each station (stations that don't have anything are excluded) |
◆ fillMissing() [2/3]
void mio::DataGenerator::fillMissing |
( |
METEO_SET & |
vecMeteo, |
|
|
const std::vector< METEO_SET > & |
fullDataset, |
|
|
const std::vector< size_t > & |
stations_idx |
|
) |
| const |
generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced.
- Parameters
-
vecMeteo | vector containing one point for each station (stations that don't have anything are excluded) |
fullDataset | full dataset for all stations, for generators that might need to look at data before/after |
stations_idx | mapping of the indices between vecMeteo (only relevant stations) and fullDataset (all stations) |
◆ fillMissing() [3/3]
void mio::DataGenerator::fillMissing |
( |
std::vector< METEO_SET > & |
vecVecMeteo | ) |
const |
generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced.
- Parameters
-
vecVecMeteo | vector containing a timeserie for each station |
◆ operator=()
◆ toString()
const std::string mio::DataGenerator::toString |
( |
| ) |
const |
The documentation for this class was generated from the following files: