Interface class for the generator models. These models generate data for a specific parameter when all other options failed (the resampling could not help). Therefore, there is nothing more that could be done with the temporal history of the data, we have to use a totally different approach: either generic data (constant value, etc) or generate the data from other meteorological parameters (relying on a parametrization, like clear sky for ILWR).
#include <GeneratorAlgorithms.h>
Public Member Functions | |
GeneratorAlgorithm (const std::vector< std::string > &, const std::string &i_algo) | |
virtual | ~GeneratorAlgorithm () |
virtual bool | generate (const size_t ¶m, MeteoData &md)=0 |
virtual bool | create (const size_t ¶m, std::vector< MeteoData > &vecMeteo)=0 |
std::string | getAlgo () const |
Protected Member Functions | |
virtual void | parse_args (const std::vector< std::string > &i_vecArgs) |
Protected Attributes | |
const std::string | algo |
Static Protected Attributes | |
static const double | soil_albedo = .23 |
static const double | snow_albedo = .85 |
static const double | snow_thresh = .1 |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in mio::AllSkyLWGenerator, mio::TauCLDGenerator, mio::ClearSkyLWGenerator, mio::AllSkySWGenerator, mio::ESOLIPGenerator, mio::ClearSkySWGenerator, mio::PPhaseGenerator, mio::SinGenerator, mio::IswrAlbedoGenerator, mio::ConstGenerator, mio::RhGenerator, mio::StandardPressureGenerator, and mio::TsGenerator.
|
pure virtual |
Implemented in mio::AllSkyLWGenerator, mio::TauCLDGenerator, mio::ClearSkyLWGenerator, mio::AllSkySWGenerator, mio::ESOLIPGenerator, mio::ClearSkySWGenerator, mio::PPhaseGenerator, mio::SinGenerator, mio::IswrAlbedoGenerator, mio::ConstGenerator, mio::RhGenerator, mio::StandardPressureGenerator, and mio::TsGenerator.
std::string mio::GeneratorAlgorithm::getAlgo | ( | ) | const |
|
protectedvirtual |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |