20#ifndef GRIDPROCESSOR_H
21#define GRIDPROCESSOR_H
43 static std::map<Date, Grid2DObject>::const_iterator
seek(
const Date& date,
const std::map<Date, Grid2DObject>& grids,
const bool& exact_match =
false);
44 static std::map<Date, Grid2DObject>::const_iterator
seek_before(
const Date& date,
const std::map<Date, Grid2DObject>& grids);
45 static std::map<Date, Grid2DObject>::const_iterator
seek_after(
const Date& date,
const std::map<Date, Grid2DObject>& grids);
49 static std::set<std::string> getParameters(
const Config& cfg);
52 bool enable_grid_filtering =
false;
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 handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
A class to temporally resample grid objects.
Definition: Grid1DInterpolator.h:40
double getWindowSize() const
Definition: Grid1DInterpolator.h:47
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:42
This class is handled by a GridManager and performs grid filtering and temporal resampling.
Definition: GridProcessor.h:39
static std::map< Date, Grid2DObject >::const_iterator seek(const Date &date, const std::map< Date, Grid2DObject > &grids, const bool &exact_match=false)
Search a list of grids for a specific date.
Definition: GridProcessor.cc:62
GridProcessor(const Config &cfg)
Constructor for a grid processor.
Definition: GridProcessor.cc:32
double getWindowSize() const
Definition: GridProcessor.h:46
static std::map< Date, Grid2DObject >::const_iterator seek_before(const Date &date, const std::map< Date, Grid2DObject > &grids)
Find a grid that is available right after a specific date.
Definition: GridProcessor.cc:86
static std::map< Date, Grid2DObject >::const_iterator seek_after(const Date &date, const std::map< Date, Grid2DObject > &grids)
Find a grid that is available before a specific date.
Definition: GridProcessor.cc:109
bool resample(const Date &date, const MeteoGrids::Parameters ¶meter, const std::map< Date, Grid2DObject > &all_grids, Grid2DObject &resampled_grid)
This function forwards interpolation requests.
Definition: GridProcessor.cc:48
Parameters
this enum provides names for possible meteogrids (from an ARPS file, etc)
Definition: MeteoData.h:46