A class to temporally resample grid objects.
#include <Grid1DInterpolator.h>
Public Member Functions | |
Grid1DInterpolator (const Config &in_cfg) | |
Constructor for a grid interpolator. More... | |
Grid1DInterpolator (const Grid1DInterpolator &org)=default | |
~Grid1DInterpolator () | |
Destructor for a Grid1DInterpolator instance. More... | |
Grid1DInterpolator & | operator= (const Grid1DInterpolator &) |
bool | resampleData (const Date &date, const MeteoGrids::Parameters ¶meter, const std::map< Date, Grid2DObject > &available_grids, Grid2DObject &resampled_grid) |
Wrapper function to call the desired grid resampling algorithm. More... | |
double | getWindowSize () const |
mio::Grid1DInterpolator::Grid1DInterpolator | ( | const Config & | in_cfg | ) |
Constructor for a grid interpolator.
On initialization, a Grid1DInterpolator instance prepares a map of per-parameter interpolation algorithms which are then ready to do the work when called.
[in] | in_cfg | The current simulation configuration. |
|
default |
mio::Grid1DInterpolator::~Grid1DInterpolator | ( | ) |
Destructor for a Grid1DInterpolator instance.
Upon destruction all algorithms previously created through the object factory are deleted here.
|
inline |
Grid1DInterpolator & mio::Grid1DInterpolator::operator= | ( | const Grid1DInterpolator & | ) |
bool mio::Grid1DInterpolator::resampleData | ( | const Date & | date, |
const MeteoGrids::Parameters & | parameter, | ||
const std::map< Date, Grid2DObject > & | available_grids, | ||
Grid2DObject & | resampled_grid | ||
) |
Wrapper function to call the desired grid resampling algorithm.
The grid processor calls this function which in turn redirects the request to the proper algorithm object.
[in] | date | The date to resample to. |
[in] | parameter | The meteo parameter to resample. |
[in] | available_grids | A list of grids on the hard drive (or generated ones) which should be used for temporal resampling inbetween them, as well as the corresponding dates. |
[out] | resampled_grid | The grid that was temporally resampled. |