A class to perform 2D spatial interpolations. For more, see Spatial interpolations.
#include <InterpolationAlgorithms.h>
Public Member Functions | |
InterpolationAlgorithm (Meteo2DInterpolator &i_mi, const std::vector< std::string > &i_vecArgs, const std::string &i_algo, TimeSeriesManager &i_tsmanager, GridsManager &i_gridsmanager) | |
virtual | ~InterpolationAlgorithm () |
virtual double | getQualityRating (const Date &i_date, const MeteoData::Parameters &in_param)=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 | |
size_t | getData (const Date &i_date, const MeteoData::Parameters &i_param, std::vector< double > &o_vecData) |
size_t | getData (const Date &i_date, const MeteoData::Parameters &i_param, std::vector< double > &o_vecData, std::vector< StationData > &o_vecMeta) |
void | getTrend (const std::vector< double > &vecAltitudes, const std::vector< double > &vecDat, Fit1D &trend) const |
Read the interpolation arguments and compute the trend accordingly. More... | |
void | simpleWindInterpolate (const DEMObject &dem, const std::vector< double > &vecDataVW, const std::vector< double > &vecDataDW, Grid2DObject &VW, Grid2DObject &DW) |
Static Protected Member Functions | |
static size_t | getStationAltitudes (const std::vector< StationData > &i_vecMeta, std::vector< double > &o_vecData) |
static void | detrend (const Fit1D &trend, const std::vector< double > &vecAltitudes, std::vector< double > &vecDat, const double &min_alt=-1e4, const double &max_alt=1e4) |
static void | retrend (const DEMObject &dem, const Fit1D &trend, Grid2DObject &grid, const double &min_alt=-1e4, const double &max_alt=1e4) |
Protected Attributes | |
Meteo2DInterpolator & | mi |
TimeSeriesManager & | tsmanager |
GridsManager & | gridsmanager |
Date | date |
const std::vector< std::string > | vecArgs |
std::vector< MeteoData > | vecMeteo |
std::vector< double > | vecData |
store the measurement for the given parameter More... | |
std::vector< StationData > | vecMeta |
store the station data for the given parameter More... | |
std::ostringstream | info |
to store some extra information about the interplation process More... | |
MeteoData::Parameters | param |
the parameter that we will interpolate More... | |
size_t | nrOfMeasurments |
the available number of measurements More... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in mio::WinstralAlgorithm, mio::OrdinaryKrigingAlgorithm, mio::USERInterpolation, mio::SnowPSUMInterpolation, mio::SWRadInterpolation, mio::AvgLapseRateAlgorithm, mio::PPHASEInterpolation, mio::StandardPressureAlgorithm, mio::ALS_Interpolation, mio::IDWLapseAlgorithm, mio::LapseOrdinaryKrigingAlgorithm, mio::RHListonAlgorithm, mio::RyanAlgorithm, mio::ListonWindAlgorithm, mio::ConstAlgorithm, mio::ILWREpsAlgorithm, mio::AvgAlgorithm, mio::IDWAlgorithm, mio::LocalIDWLapseAlgorithm, mio::NoneAlgorithm, and mio::WinstralListonAlgorithm.
|
staticprotected |
|
protected |
|
protected |
std::string mio::InterpolationAlgorithm::getInfo | ( | ) | const |
Return an information string about the interpolation process.
|
pure virtual |
Implemented in mio::WinstralAlgorithm, mio::OrdinaryKrigingAlgorithm, mio::USERInterpolation, mio::SnowPSUMInterpolation, mio::SWRadInterpolation, mio::AvgLapseRateAlgorithm, mio::PPHASEInterpolation, mio::StandardPressureAlgorithm, mio::ALS_Interpolation, mio::IDWLapseAlgorithm, mio::RHListonAlgorithm, mio::RyanAlgorithm, mio::ListonWindAlgorithm, mio::ConstAlgorithm, mio::ILWREpsAlgorithm, mio::AvgAlgorithm, mio::IDWAlgorithm, mio::LocalIDWLapseAlgorithm, mio::NoneAlgorithm, and mio::WinstralListonAlgorithm.
|
staticprotected |
|
protected |
Read the interpolation arguments and compute the trend accordingly.
vecAltitudes | altitudes sorted similarly as the data in vecDat |
vecDat | data for the interpolated parameter |
trend | object containing the fitted trend to be used for detrending/retrending |
|
staticprotected |
|
protected |
const std::string mio::InterpolationAlgorithm::algo |
|
protected |
|
protected |
|
protected |
to store some extra information about the interplation process
|
protected |
|
protected |
the available number of measurements
|
protected |
the parameter that we will interpolate
|
protected |
|
protected |
|
protected |
store the measurement for the given parameter
|
protected |
store the station data for the given parameter
|
protected |