38 GRIBIO(
const std::string& configfile);
50 std::vector< std::vector<MeteoData> >& vecMeteo);
54 void listFields(
const std::string& filename);
55 void getDate(grib_handle* h,
Date &base,
double &d1,
double &d2);
56 Coords getGeolocalization(grib_handle* h,
double &cellsize_x,
double &cellsize_y);
57 void read2Dlevel(grib_handle* h,
Grid2DObject& grid_out);
58 bool read2DGrid_indexed(
const double& in_marsParam,
const long& i_levelType,
const long& i_level,
const Date i_date,
Grid2DObject& grid_out);
60 void readWind(
const std::string& filename,
const Date& date);
61 void indexFile(
const std::string& filename);
62 void readStations(std::vector<Coords> &vecPoints);
63 void listKeys(grib_handle** h,
const std::string& filename);
65 void cleanup()
throw();
67 bool removeDuplicatePoints(std::vector<Coords>& vecPoints,
double *lats,
double *lons);
68 bool readMeteoMeta(std::vector<Coords>& vecPoints, std::vector<StationData> &stations,
double *lats,
double *lons);
69 bool readMeteoValues(
const double& marsParam,
const long& levelType,
const long& i_level,
const Date& i_date,
const size_t& npoints,
double *lats,
double *lons,
double *values);
70 void fillMeteo(
double *values,
const MeteoData::Parameters& param,
const size_t& npoints, std::vector<MeteoData> &Meteo);
71 void readMeteoStep(std::vector<StationData> &stations,
double *lats,
double *lons,
const Date i_date, std::vector<MeteoData> &Meteo);
74 std::string grid2dpath_in;
75 std::string meteopath_in;
76 std::vector<Coords> vecPts;
77 std::vector< std::pair<Date,std::string> > cache_meteo_files;
78 std::string meteo_ext;
79 std::string grid2d_ext;
80 std::string grid2d_prefix;
81 std::string idx_filename;
82 std::string coordin, coordinparam;
89 double latitudeOfNorthernPole, longitudeOfNorthernPole;
90 double bearing_offset;
91 double cellsize, factor_x, factor_y;
93 static const std::string default_ext;
94 static const double plugin_nodata;
95 static const double tz_in;
97 bool meteo_initialized;
98 bool llcorner_initialized;
GRIBIO & operator=(const GRIBIO &)
Assignement operator, required because of pointer member.
Definition: GRIBIO.cc:123
A class representing the IO Layer of the software Alpine3D. For each type of IO (File, DB, Webservice, etc) a derived class is to be created that holds the specific implementation of the appropriate virtual methods. The IOHandler class is a wrapper class that is able to deal with all above implementations of the IOInterface abstract base class.
Definition: IOInterface.h:43
A class to handle geographic coordinate systems. This class offers an easy way to transparently conve...
Definition: Coords.h:81
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:731
~GRIBIO()
Definition: GRIBIO.cc:155
Parameters
Definition: MeteoData.h:119
This plugin reads GRIB 1 or 2 data files.
Definition: GRIBIO.h:36
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition: GRIBIO.cc:680
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:58
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:39
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:37
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
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:445
GRIBIO(const std::string &configfile)
Definition: GRIBIO.cc:101
Parameters
Definition: MeteoData.h:44