20#ifndef GRIDRESAMPLINGALGORITHM_H
21#define GRIDRESAMPLINGALGORITHM_H
41 GridResamplingAlgorithm(
const std::string& algorithm,
const std::string& i_parname,
const double& dflt_window_size,
const std::vector< std::pair<std::string, std::string> >& );
60 const double& grid_window_size,
const std::vector< std::pair<std::string, std::string> >& vecArgs);
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
Interface class for grid resampling algorithms.
Definition: GridResamplingAlgorithms.h:38
virtual ~GridResamplingAlgorithm()=default
const std::string algo
Definition: GridResamplingAlgorithms.h:49
virtual void resample(const Date &date, const std::map< Date, Grid2DObject > &all_grids, Grid2DObject &resampled_grid)=0
const std::string parname
Definition: GridResamplingAlgorithms.h:49
virtual std::string toString() const =0
void setWindowSize(const double &window_size)
Set this algorithm's window size to something other than the default value.
Definition: GridResamplingAlgorithms.cc:75
double grid_window_size
Definition: GridResamplingAlgorithms.h:50
GridResamplingAlgorithm(const std::string &algorithm, const std::string &i_parname, const double &dflt_window_size, const std::vector< std::pair< std::string, std::string > > &)
Facade constructor for a generic grid resampling algorithm.
Definition: GridResamplingAlgorithms.cc:63
Object factory for temporal grid resampling algorithms.
Definition: GridResamplingAlgorithms.h:57
static GridResamplingAlgorithm * getAlgorithm(const std::string &i_algorithm, const std::string &parname, const double &grid_window_size, const std::vector< std::pair< std::string, std::string > > &vecArgs)
Object factory for temporal grid resampling algorithms.
Definition: GridResamplingAlgorithms.cc:90