MeteoIODoc  2.10.0
mio::RyanAlgorithm Class Reference

Detailed Description

DEM-based wind direction interpolation algorithm.

This is an implementation of a method that alters a wind field (that is first computed with IDW)) based on the DEM, as described in Ryan, "a mathematical model for diagnosis and prediction of surface winds in mountainous terrain", 1977, journal of applied meteorology, 16, 6. It takes the following arguments:

  • SCALE: this is a scaling parameter to smooth the IDW distribution. In effect, this is added to the distance in order to move into the tail of the 1/d distribution (default: 1000m);
  • ALPHA: this is an exponent to the 1/d distribution (default: 1);
  • all the trend-controlling arguments supported by Trend::Trend().
DW::algorithms = RYAN

#include <RyanWindAlgorithm.h>

Public Member Functions

 RyanAlgorithm (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm)
 
virtual double getQualityRating (const Date &i_date)
 
virtual void calculate (const DEMObject &dem, Grid2DObject &grid)
 
- Public Member Functions inherited from mio::ListonWindAlgorithm
 ListonWindAlgorithm (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm)
 
- Public Member Functions inherited from mio::InterpolationAlgorithm
 InterpolationAlgorithm (const std::vector< std::pair< std::string, std::string > > &, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm)
 
virtual ~InterpolationAlgorithm ()
 
std::string getInfo () const
 Return an information string about the interpolation process. More...
 

Additional Inherited Members

- Public Attributes inherited from mio::InterpolationAlgorithm
const std::string algo
 
- Protected Member Functions inherited from mio::ListonWindAlgorithm
void simpleWindInterpolate (const DEMObject &dem, Grid2DObject &VW, Grid2DObject &DW)
 
- Protected Member Functions inherited from mio::InterpolationAlgorithm
std::vector< double > getData (const Date &i_date, const std::string &i_param)
 
size_t getData (const Date &i_date, const std::string &i_param, std::vector< double > &o_vecData, std::vector< StationData > &o_vecMeta)
 
- Protected Attributes inherited from mio::ListonWindAlgorithm
Trend trend
 
std::vector< double > vecDataVW
 
std::vector< double > vecDataDW
 vectors of extracted VW and DW More...
 
double eta
 
double scale
 
double alpha
 a scale parameter for calculating curvature, a scale parameter to smooth out the 1/dist and an exponent More...
 
size_t param_idx
 
bool inputIsAllZeroes
 
- Protected Attributes inherited from mio::InterpolationAlgorithm
TimeSeriesManagertsmanager
 
Date date
 
std::vector< MeteoDatavecMeteo
 
std::vector< double > vecData
 store the measurement for the given parameter More...
 
std::vector< StationDatavecMeta
 store the station data for the given parameter More...
 
std::ostringstream info
 to store some extra information about the interplation process More...
 
const std::string param
 the parameter that we will interpolate More...
 
size_t nrOfMeasurments
 Number of stations that have been used, so this can be reported to the user. More...
 

Constructor & Destructor Documentation

◆ RyanAlgorithm()

mio::RyanAlgorithm::RyanAlgorithm ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  i_algo,
const std::string &  i_param,
TimeSeriesManager i_tsm 
)
inline

Member Function Documentation

◆ calculate()

void mio::RyanAlgorithm::calculate ( const DEMObject dem,
Grid2DObject grid 
)
virtual

Reimplemented from mio::ListonWindAlgorithm.

◆ getQualityRating()

double mio::RyanAlgorithm::getQualityRating ( const Date i_date)
virtual

Reimplemented from mio::ListonWindAlgorithm.


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