OGS
GeoLib::IO Namespace Reference

Classes

class  BoostXmlGmlInterface
 
class  TINInterface
 
class  XmlGmlInterface
 Reads and writes GeoObjects to and from XML files. More...
 
class  XmlStnInterface
 Reads and writes Observation Sites to and from XML files. More...
 

Functions

GeoLib::NamedRaster readRaster (BaseLib::ConfigTree const &raster_config, std::string const &raster_directory, GeoLib::MinMaxPoints const &min_max_points)
 

Function Documentation

◆ readRaster()

GeoLib::NamedRaster GeoLib::IO::readRaster ( BaseLib::ConfigTree const & raster_config,
std::string const & raster_directory,
GeoLib::MinMaxPoints const & min_max_points )
Input File Parameter
prj__rasters__raster__file
Input File Parameter
prj__rasters__raster__variable
Input File Parameter
prj__rasters__raster__dimension

Definition at line 220 of file NetCDFRasterReader.cpp.

223{
224 auto const file_name =
226 raster_config.getConfigParameter<std::string>("file");
227 auto const variable_name =
229 raster_config.getConfigParameter<std::string>("variable");
230 auto const dimension =
232 raster_config.getConfigParameter<std::size_t>("dimension", 1);
233 return readRasterFromFile(raster_directory, file_name, variable_name,
234 dimension, min_max_points);
235}
GeoLib::NamedRaster readRasterFromFile(std::filesystem::path const &path, std::filesystem::path filename, std::string const &var_name, std::size_t const dimension_number, GeoLib::MinMaxPoints const &min_max_points)

References BaseLib::ConfigTree::getConfigParameter().