29 using namespace codes;
41 GRIBIO(
const std::string& configfile);
50 std::vector< std::vector<MeteoData> >& vecMeteo);
54 std::string coordin, coordinparam, coordout, coordoutparam;
56 std::string meteopath_in, grid2dpath_in, table_path;
57 std::string meteo_ext, meteo_pattern,grid2d_ext, grid_2d_pattern;
58 bool recursive_search;
62 double bearing_offset, latitudeOfNorthernPole, longitudeOfNorthernPole;
63 bool llcorner_initialized;
65 double cellsize, factor_x, factor_y;
68 bool grid_initialized, meteo_initialized;
70 std::vector<GRIBFile> cache_meteo, cache_grid2d;
72 std::vector<Coords> vecPts;
76 void scanPath(
const std::string &in_path,
const std::string &in_ext,
const std::string &in_pattern, std::vector<GRIBFile> &cache);
78 void readStations(std::vector<Coords> &vecPoints);
79 Coords getGeolocalization(
double &cellsize_x,
double &cellsize_y,
const std::map<std::string,double> &grid_params);
82 void initializeLLCorner(
const std::map<std::string, double>& grid_params);
87 bool readMeteoMeta(
GRIBFile& file ,std::vector<Coords>& vecPoints, std::vector<StationData> &stations, std::vector<double> &lats, std::vector<double> &lons);
88 bool removeDuplicatePoints(std::vector<Coords> &vecPoints, std::vector<double> &lats, std::vector<double> &lons);
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 geographic coordinate systems. This class offers an easy way to transparently conve...
Definition: Coords.h:83
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
Definition: GRIBFile.h:89
This class is used to read grib files.
Definition: GRIBIO.h:39
virtual void readMeteoData(const Date &dateStart, const Date &dateEnd, std::vector< std::vector< MeteoData > > &vecMeteo)
Fill vecMeteo with a time series of objects corresponding to the interval indicated by dateStart and ...
Definition: GRIBIO.cc:589
virtual bool list2DGrids(const Date &, const Date &, std::map< Date, std::set< size_t > > &)
Return the list of grids within a given time period that could be read by the plugin,...
Definition: GRIBIO.h:44
virtual void read2DGrid(Grid2DObject &grid_out, const std::string ¶meter="")
A generic function for parsing 2D grids into a Grid2DObject. The string parameter shall be used for a...
Definition: GRIBIO.cc:320
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition: GRIBIO.cc:484
GRIBIO(const std::string &configfile)
Definition: GRIBIO.cc:145
Definition: GRIBFile.h:35
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:42
A class representing the IO Layer of the software Alpine3D. For each type of IO (File,...
Definition: IOInterface.h:98
Parameters
this enum provides names for possible meteogrids (from an ARPS file, etc)
Definition: MeteoData.h:46
This namespace handles all the low level manipulation of GRIB and BUFR files with ecCodes.
std::unique_ptr< codes_handle, HandleDeleter > CodesHandlePtr
Definition: libcodes.h:52