76 std::vector<METEO_SET>
getVirtualStationsFromGrid(
const DEMObject& dem,
const std::vector<size_t>& v_params,
const std::vector<StationData>& v_stations,
const Date& dateStart,
const Date& dateEnd,
const bool& PtsExtract=
false);
82 bool setGrids2d_list(
const Date& date);
83 bool setGrids2d_list(
const Date& dateStart,
const Date& dateEnd);
88 std::vector < double > getPtsfromGrid(
const MeteoGrids::Parameters& parameter,
const Date& date,
const std::vector< std::pair<size_t, size_t> >& Pts);
89 bool getPtsfromgenerateGrid(std::vector<double>& Vec,
const std::set<size_t>& available_params,
const MeteoGrids::Parameters& parameter,
const Date& date,
const std::vector< std::pair<size_t, size_t> >& Pts);
95 std::map<Date, std::set<size_t> > grids2d_list;
96 Date grids2d_start, grids2d_end;
98 double grid2d_list_buffer_size;
99 unsigned int processing_level;
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 represent 3D Grids. Typical application: wind field.
Definition: Grid3DObject.h:39
A class to buffer gridded data. This class buffers Grid2D objects. It implements a proper ring buffer...
Definition: Buffer.h:157
void clear()
Definition: Buffer.h:162
This class is handled by a GridManager and performs grid filtering and temporal resampling.
Definition: GridProcessor.h:39
Definition: GridsManager.h:33
void readAssimilationData(const Date &date_in, Grid2DObject &da_out)
Definition: GridsManager.cc:139
void read3DGrid(Grid3DObject &grid_out, const MeteoGrids::Parameters ¶meter, const Date &date)
Definition: GridsManager.h:43
std::vector< StationData > initVirtualStations(const DEMObject &dem, const bool &adjust_coordinates, const bool &fourNeighbors) const
Create a list of virtual stations from the user-provided input.
Definition: GridsManager.cc:198
void read3DGrid(Grid3DObject &grid_out, const std::string &i_filename="")
Definition: GridsManager.h:42
void read2DGrid(Grid2DObject &grid_out, const std::string &option="")
Read the requested grid, according to the configured processing level.
Definition: GridsManager.cc:70
void write2DGrid(const Grid2DObject &grid_in, const MeteoGrids::Parameters ¶meter, const Date &date)
Definition: GridsManager.h:51
void clear_cache()
Definition: GridsManager.h:57
void readGlacier(Grid2DObject &landuse_out)
Definition: GridsManager.cc:126
void write3DGrid(const Grid3DObject &grid_out, const std::string &options="")
Definition: GridsManager.h:52
GridsManager(IOHandler &in_iohandler, const Config &in_cfg)
Definition: GridsManager.cc:29
const std::string toString() const
Definition: GridsManager.cc:984
void write3DGrid(const Grid3DObject &grid_out, const MeteoGrids::Parameters ¶meter, const Date &date)
Definition: GridsManager.h:53
IOHandler & getIOHandler() const
Returns a copy of the internal IOHandler object. This is convenient to clone an iomanager.
Definition: GridsManager.h:71
void setProcessingLevel(const unsigned int &i_level)
Set the desired ProcessingLevel.
Definition: GridsManager.cc:51
const Config getConfig() const
Returns a copy of the internal Config object. This is convenient to clone an iomanager.
Definition: GridsManager.h:64
void write2DGrid(const Grid2DObject &grid_in, const std::string &options="")
Definition: GridsManager.h:50
void readDEM(DEMObject &dem_out)
Definition: GridsManager.cc:96
void readLanduse(Grid2DObject &landuse_out)
Definition: GridsManager.cc:113
std::vector< StationData > initVirtualStationsAtAllGridPoints(const DEMObject &dem) const
Create a list of virtual stations from each grid point.
Definition: GridsManager.cc:158
METEO_SET getVirtualStationsFromGrid(const DEMObject &dem, const std::vector< size_t > &v_params, const std::vector< StationData > &v_stations, const Date &date, const bool &PtsExtract=false)
Extract time series from grids at the specified points (virtual stations).
Definition: GridsManager.cc:287
This class is the class to use for raw I/O operations. It is responsible for transparently loading th...
Definition: IOHandler.h:37
virtual void write2DGrid(const Grid2DObject &grid_in, const std::string &name)
Write a Grid2DObject The filename is specified relative to GRID2DPATH for most plugins.
Definition: IOHandler.cc:543
virtual void write3DGrid(const Grid3DObject &grid_out, const std::string &options)
Write a Grid3DObject The filename is specified relative to GRID3DPATH for most plugins.
Definition: IOHandler.cc:555
virtual void read3DGrid(Grid3DObject &grid_out, const std::string &i_filename="")
A generic function for parsing 3D grids into a Grid3DObject. The string parameter shall be used for a...
Definition: IOHandler.cc:449
Parameters
this enum provides names for possible meteogrids (from an ARPS file, etc)
Definition: MeteoData.h:46
std::vector< MeteoData > METEO_SET
Definition: MeteoData.h:32