MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mio::PPhaseGenerator Class Reference

Detailed Description

Generate precipitation splitting according to the selected method The methods that are offered are currently the following:

  • THRESH: a provided fixed air temperature threshold splits precipitation as either fully solid or fully liquid
  • RANGE: two air temperature thresholds provide the lower and upper range for fully solid / fully liquid precipitation. Within the provided range, a linear transition is assumed.
PSUM_PH::generators = PPHASE
PSUM_PH::PPHASE = THRESH 274.35

#include <PPHASEGenerator.h>

Public Member Functions

 PPhaseGenerator (const std::vector< std::string > &vecArgs, const std::string &i_algo)
 
bool generate (const size_t &param, MeteoData &md)
 
bool create (const size_t &param, std::vector< MeteoData > &vecMeteo)
 
- Public Member Functions inherited from mio::GeneratorAlgorithm
 GeneratorAlgorithm (const std::vector< std::string > &, const std::string &i_algo)
 
virtual ~GeneratorAlgorithm ()
 
std::string getAlgo () const
 

Additional Inherited Members

- Protected Attributes inherited from mio::GeneratorAlgorithm
const std::string algo
 
- Static Protected Attributes inherited from mio::GeneratorAlgorithm
static const double soil_albedo = .23
 
static const double snow_albedo = .85
 
static const double snow_thresh = .1
 

Constructor & Destructor Documentation

mio::PPhaseGenerator::PPhaseGenerator ( const std::vector< std::string > &  vecArgs,
const std::string &  i_algo 
)
inline

Member Function Documentation

bool mio::PPhaseGenerator::create ( const size_t &  param,
std::vector< MeteoData > &  vecMeteo 
)
virtual
bool mio::PPhaseGenerator::generate ( const size_t &  param,
MeteoData md 
)
virtual

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