MeteoIODoc 2.11.0
mio::DataGenerator Class Reference

Detailed Description

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>

Public Member Functions

 DataGenerator (const Config &cfg, const std::set< std::string > &params_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...
 
DataGeneratoroperator= (const DataGenerator &source)
 
const std::string toString () const
 

Constructor & Destructor Documentation

◆ DataGenerator() [1/2]

mio::DataGenerator::DataGenerator ( const Config cfg,
const std::set< std::string > &  params_to_generate = std::set<std::string>() 
)

◆ DataGenerator() [2/2]

mio::DataGenerator::DataGenerator ( const DataGenerator c)
inline

◆ ~DataGenerator()

mio::DataGenerator::~DataGenerator ( )
virtual

Member Function Documentation

◆ 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
vecMeteovector 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
vecMeteovector containing one point for each station (stations that don't have anything are excluded)
fullDatasetfull dataset for all stations, for generators that might need to look at data before/after
stations_idxmapping 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
vecVecMeteovector containing a timeserie for each station

◆ operator=()

DataGenerator & mio::DataGenerator::operator= ( const DataGenerator source)

◆ toString()

const std::string mio::DataGenerator::toString ( ) const

The documentation for this class was generated from the following files: