MeteoIODoc 2.11.0
mio::PPHASEInterpolation Class Reference

Detailed Description

Precipitation phase splitting generation.

This does not interpolate any measured precipitation phase but generates it for each point based on parametrizations, similarly to the PPHASE generator (see PPhaseGenerator).

It takes the following arguments:

  • TYPE: the splitting method to use, any of 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.
  • SNOW: when using a fixed air temperature threshold, this gives the snow/rain threshold (in K). When using two air temperatures thresholds, this provides the temperature below which only solid precipitation is found (in K);
  • RAIN: when using two air temperatures thresholds, this provides the temperature above which only liquid precipitation is found (in K);
PSUM_PH::algorithms = PPHASE
PSUM_PH::PPHASE::type = THRESH
PSUM_PH::PPHASE::snow = 274.35

#include <PPhaseAlgorithm.h>

Public Member Functions

 PPHASEInterpolation (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm, Meteo2DInterpolator &i_mi)
 
virtual double getQualityRating (const Date &i_date)
 
virtual void calculate (const DEMObject &dem, Grid2DObject &grid)
 
- 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 ()
 
virtual double getQualityRating (const Date &i_date)=0
 
virtual void calculate (const DEMObject &dem, Grid2DObject &grid)=0
 
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::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::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

◆ PPHASEInterpolation()

mio::PPHASEInterpolation::PPHASEInterpolation ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  i_algo,
const std::string &  i_param,
TimeSeriesManager i_tsm,
Meteo2DInterpolator i_mi 
)

Member Function Documentation

◆ calculate()

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

◆ getQualityRating()

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

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