18 #ifndef IDWLAPSE_ALGORITHM_H
19 #define IDWLAPSE_ALGORITHM_H
42 const std::vector<std::string>& i_vecArgs,
47 bool lapse_rate_provided;
virtual double getQualityRating(const Date &i_date, const MeteoData::Parameters &in_param)
Definition: IDWLapseAlgorithm.cc:36
Definition: GridsManager.h:28
Parameters
Definition: MeteoData.h:119
A class to perform 2D spatial interpolations. For more, see Spatial interpolations.
Definition: InterpolationAlgorithms.h:43
Inverse Distance Weighting interpolation algorithm with elevation detrending/reprojection. The input data is detrended and the residuals are spatially interpolated using an Inverse Distance Weighting interpolation algorithm (see IDWAlgorithm). Then, each value is reprojected to the real elevation of the relative cell (re-trending). The lapse rate is either calculated from the data (if no extra argument is provided), or given by the user-provided the optional argument "idw_lapse". If followed by "soft", then an attempt to calculate the lapse rate from the data is made, any only if unsuccessful or too bad (r^2<0.6), then the user provided lapse rate is used as a fallback. If the optional user given lapse rate is followed by "frac", then the lapse rate is understood as a fractional lapse rate, that is a relative change of the value as a function of the elevation (for example, +0.05% per meters given as 0.0005). In this case, no attempt to calculate the fractional lapse from the data is made.
Definition: IDWLapseAlgorithm.h:39
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:39
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:37
A class to spatially interpolate meteo parameters. For more, see Spatial interpolations.
Definition: Meteo2DInterpolator.h:99
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
Definition: TimeSeriesManager.h:31
virtual void calculate(const DEMObject &dem, Grid2DObject &grid)
Definition: IDWLapseAlgorithm.cc:48
IDWLapseAlgorithm(Meteo2DInterpolator &i_mi, const std::vector< std::string > &i_vecArgs, const std::string &i_algo, TimeSeriesManager &i_tsmanager, GridsManager &i_gridsmanager)
Definition: IDWLapseAlgorithm.cc:24