MeteoIODoc 2.11.0
mio::InterpolationAlgorithm Class Referenceabstract

Detailed Description

A class to perform 2D spatial interpolations. For more, see Spatial interpolations.

Author
Thomas Egger
Date
2010-04-01

#include <InterpolationAlgorithms.h>

Public Member Functions

 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...
 

Public Attributes

const std::string algo
 

Protected Member Functions

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

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

◆ InterpolationAlgorithm()

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 
)
inline

◆ ~InterpolationAlgorithm()

virtual mio::InterpolationAlgorithm::~InterpolationAlgorithm ( )
inlinevirtual

Member Function Documentation

◆ calculate()

◆ getData() [1/2]

std::vector< double > mio::InterpolationAlgorithm::getData ( const Date i_date,
const std::string &  i_param 
)
protected

◆ getData() [2/2]

size_t mio::InterpolationAlgorithm::getData ( const Date i_date,
const std::string &  i_param,
std::vector< double > &  o_vecData,
std::vector< StationData > &  o_vecMeta 
)
protected

◆ getInfo()

std::string mio::InterpolationAlgorithm::getInfo ( ) const

Return an information string about the interpolation process.

Returns
string containing some information (algorithm used, number of stations)

◆ getQualityRating()

Member Data Documentation

◆ algo

const std::string mio::InterpolationAlgorithm::algo

◆ date

Date mio::InterpolationAlgorithm::date
protected

◆ info

std::ostringstream mio::InterpolationAlgorithm::info
protected

to store some extra information about the interplation process

◆ nrOfMeasurments

size_t mio::InterpolationAlgorithm::nrOfMeasurments
protected

Number of stations that have been used, so this can be reported to the user.

◆ param

const std::string mio::InterpolationAlgorithm::param
protected

the parameter that we will interpolate

◆ tsmanager

TimeSeriesManager& mio::InterpolationAlgorithm::tsmanager
protected

◆ vecData

std::vector<double> mio::InterpolationAlgorithm::vecData
protected

store the measurement for the given parameter

◆ vecMeta

std::vector<StationData> mio::InterpolationAlgorithm::vecMeta
protected

store the station data for the given parameter

◆ vecMeteo

std::vector<MeteoData> mio::InterpolationAlgorithm::vecMeteo
protected

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