20#ifndef METEO2DINTERPOLATOR_H
21#define METEO2DINTERPOLATOR_H
35class InterpolationAlgorithm;
126 std::vector<Coords> vec_coords, std::vector<double>& result,
const bool& quiet=
false);
129 std::vector<StationData> vec_stations, std::vector<double>& result,
const bool& quiet=
false);
139 const std::string& algorithm,
const std::string& section)
const;
144 static void checkMinMax(
const double& minval,
const double& maxval,
Grid2DObject& gridobj);
145 static void check_projections(
const DEMObject& dem,
const std::vector<MeteoData>& vec_meteo);
146 static std::set<std::string> getParameters(
const Config& i_cfg);
147 static std::vector<std::string> getAlgorithmsForParameter(
const Config& i_cfg,
const std::string& parname);
149 void setAlgorithms();
156 std::map< std::string, std::vector<InterpolationAlgorithm*> > mapAlgorithms;
158 bool algorithms_ready;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:40
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:42
A class to buffer gridded data. This class buffers Grid2D objects. It implements a proper ring buffer...
Definition: Buffer.h:157
Definition: GridsManager.h:33
A class to spatially interpolate meteo parameters. For more, see Spatial interpolations.
Definition: Meteo2DInterpolator.h:97
const std::string toString() const
Definition: Meteo2DInterpolator.cc:334
~Meteo2DInterpolator()
Definition: Meteo2DInterpolator.cc:58
std::vector< std::pair< std::string, std::string > > getArgumentsForAlgorithm(const std::string &parname, const std::string &algorithm, const std::string §ion) const
Retrieve the arguments vector for a given interpolation algorithm.
Definition: Meteo2DInterpolator.cc:135
Meteo2DInterpolator & operator=(const Meteo2DInterpolator &)
Assignement operator.
Definition: Meteo2DInterpolator.cc:45
std::string interpolate(const Date &date, const DEMObject &dem, const MeteoData::Parameters &meteoparam, Grid2DObject &result, const bool &quiet=false)
A generic function that can interpolate for any given MeteoData member variable.
Definition: Meteo2DInterpolator.cc:152
Meteo2DInterpolator(const Config &i_cfg, TimeSeriesManager &i_tsmanager, GridsManager &i_gridsmanager)
Constructor.
Definition: Meteo2DInterpolator.cc:27
Parameters
this enum provides indexed access to meteorological fields
Definition: MeteoData.h:145
Definition: TimeSeriesManager.h:31