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

Detailed Description

Atmospheric transmissivity generator. Generate the atmospheric transmissivity (or clearness index, see meteoparam) from other parameters. If a parameter named "CLD" is available, it will be interpreted as cloud cover / cloudiness: in okta between 0 (fully clear) and 8 (fully cloudy). For synop reports, it is possible to include a value of exactly 9 (sky obstructed from view by fog, heavy precipitation...) that will be transparently reset to 8 (fully cloudy).

If no such parameter is available, the atmospheric transmissivity is calculated from the solar index (ratio of measured iswr to potential iswr, therefore using the current location (lat, lon, altitude) and ISWR to parametrize the cloud cover). This relies on (Kasten and Czeplak, 1980).

TAU_CLD::generators = TAU_CLD

#include <TauCLDGenerator.h>

Public Types

enum  clf_parametrization { KASTEN, CLF_CRAWFORD }
 

Public Member Functions

 TauCLDGenerator (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
 

Static Public Member Functions

static double getCloudiness (const clf_parametrization &clf_model, const MeteoData &md, SunObject &sun, bool &is_night)
 

Additional Inherited Members

- Protected Member Functions inherited from mio::GeneratorAlgorithm
virtual void parse_args (const std::vector< std::string > &i_vecArgs)
 
- 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
 

Member Enumeration Documentation

Enumerator
KASTEN 
CLF_CRAWFORD 

Constructor & Destructor Documentation

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

Member Function Documentation

bool mio::TauCLDGenerator::create ( const size_t &  param,
std::vector< MeteoData > &  vecMeteo 
)
virtual
bool mio::TauCLDGenerator::generate ( const size_t &  param,
MeteoData md 
)
virtual
double mio::TauCLDGenerator::getCloudiness ( const clf_parametrization clf_model,
const MeteoData md,
SunObject sun,
bool &  is_night 
)
static

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