MeteoIODoc 20261003.b9219c1f
Environmental timeseries pre-processing
Loading...
Searching...
No Matches
mio::RHListonAlgorithm Class Reference

Detailed Description

Relative humidity interpolation algorithm.

This is an implementation of the method described in (Liston & Elder, 2006): for each input point, the dew point temperature is calculated. Then, the dew point temperatures are spatially interpolated using IDWLapseAlgorithm (if only one station is available, no altitudinal trends will be applied). Finally, each local dew point temperature is converted back to a local relative humidity. As a side effect, the user must have defined algorithms to be used for air temperature (since this is needed for dew point to RH conversion). 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().
RH::algorithms = LISTON_RH

#include <RHListonAlgorithm.h>

Public Member Functions

 RHListonAlgorithm (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) override
 
virtual void calculate (const DEMObject &dem, Grid2DObject &grid) override
 
- 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.
 

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
TimeSeriesManager & tsmanager
 
Date date
 
std::vector< MeteoData > vecMeteo
 
std::vector< double > vecData
 store the measurement for the given parameter
 
std::vector< StationData > vecMeta
 store the station data for the given parameter
 
std::ostringstream info
 to store some extra information about the interplation process
 
const std::string param
 the parameter that we will interpolate
 
size_t nrOfMeasurments
 Number of stations that have been used, so this can be reported to the user.
 

Constructor & Destructor Documentation

◆ RHListonAlgorithm()

mio::RHListonAlgorithm::RHListonAlgorithm ( 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::RHListonAlgorithm::calculate ( const DEMObject &  dem,
Grid2DObject &  grid 
)
overridevirtual

◆ getQualityRating()

double mio::RHListonAlgorithm::getQualityRating ( const Date &  i_date)
overridevirtual

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