55 bool in(
const size_t& ll)
const {
99 static std::vector< LinesRange >
getLinesRestrictions(
const std::string& args,
const std::string& where,
const bool& negate);
108 static void mergeLinesRanges(std::vector< LinesRange >& lines_specs);
258 std::vector< std::vector<MeteoData> >& vecMeteo);
283 virtual void writeMeteoData(
const std::vector< std::vector<MeteoData> >& vecMeteo,
284 const std::string& name=
"");
306 virtual void readPOI(std::vector<Coords>& pts);
343 static double computeGridXYCellsize(
const std::vector<double>& vecX,
const std::vector<double>& vecY);
347 typedef enum VERSIONING_TYPE {
364 static std::string
buildVersionString(
const VersioningType& versioning,
const std::vector< std::vector<MeteoData> >& vecMeteo,
const double& tz,
const std::string& versioning_str);
366 static std::string
buildVersionString(
const VersioningType& versioning,
const std::vector<MeteoData>& vecMeteo,
const double& tz,
const std::string& versioning_str);
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 representing the IO Layer of the software Alpine3D. For each type of IO (File,...
Definition IOInterface.h:121
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 IOInterface.cc:157
virtual ~IOInterface()
Definition IOInterface.h:123
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition IOInterface.cc:120
VersioningType
Definition IOInterface.h:347
@ DATA_END
date of the end of the data
Definition IOInterface.h:352
@ NOW
creation time
Definition IOInterface.h:350
@ DATA_YEARS
start and end year of the data (if they are the same, it is not repeated)
Definition IOInterface.h:353
@ STRING
fixed string, user provided
Definition IOInterface.h:349
@ DATA_START
date of the start of the data
Definition IOInterface.h:351
@ NO_VERSIONING
no type selected
Definition IOInterface.h:348
static std::string buildVersionString(const VersioningType &versioning, const std::vector< std::vector< MeteoData > > &vecMeteo, const double &tz, const std::string &versioning_str)
Build a version identification to add to the output file name.
Definition IOInterface.cc:180
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition IOInterface.cc:105
virtual void read3DGrid(Grid3DObject &grid_out, const std::string ¶meter="")
A generic function for parsing 3D grids into a Grid3DObject. The string parameter shall be used for a...
Definition IOInterface.cc:95
virtual bool list2DGrids(const Date &start, const Date &end, std::map< Date, std::set< size_t > > &list)
Return the list of grids within a given time period that could be read by the plugin,...
Definition IOInterface.cc:72
static void set2DGridLatLon(Grid2DObject &grid, const double &i_ur_lat, const double &i_ur_lon)
Definition IOInterface.cc:167
virtual void readGlacier(Grid2DObject &glacier_out)
Parse the input glacier grid into the Grid2DObject.
Definition IOInterface.cc:115
static std::string datesVersionStr(const VersioningType &versioning, const Date &start_dt, const Date &end_dt)
Internal helper to build version string from start and end dates.
Definition IOInterface.cc:225
virtual void writeMeteoData(const std::vector< std::vector< MeteoData > > &vecMeteo, const std::string &name="")
Write vecMeteo time series to a certain destination.
Definition IOInterface.cc:131
virtual void write2DGrid(const Grid2DObject &grid_out, const std::string &options="")
Write a Grid2DObject The filename is specified relative to GRID2DPATH for most plugins.
Definition IOInterface.cc:147
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 IOInterface.cc:77
static double computeGridXYCellsize(const std::vector< double > &vecX, const std::vector< double > &vecY)
Definition IOInterface.cc:174
virtual void readPOI(std::vector< Coords > &pts)
Read a list of points by their grid coordinates This allows for example to get a list of points where...
Definition IOInterface.cc:142
virtual void readPointsIn2DGrid(std::vector< double > &data, const MeteoGrids::Parameters ¶meter, const Date &date, const std::vector< std::pair< size_t, size_t > > &Pts)
Read the given meteo parameter into a vector for a list of points. Each plugin has its own logic for ...
Definition IOInterface.cc:87
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 IOInterface.cc:125
virtual void readLanduse(Grid2DObject &landuse_out)
Parse the landuse model into the Grid2DObject.
Definition IOInterface.cc:110
virtual void readAssimilationData(const Date &date_in, Grid2DObject &da_out)
Parse the assimilation data into a Grid2DObject for a certain date represented by the Date object.
Definition IOInterface.cc:137
A class to represent and handle ranges of lines. They can be sorted, checked for uniqueness and a lin...
Definition IOInterface.h:45
bool operator<(const LinesRange &ll) const
Definition IOInterface.h:77
size_t end
Definition IOInterface.h:102
size_t start
Definition IOInterface.h:102
bool operator<(const size_t &ll) const
Is the provided line number before the end of the range?
Definition IOInterface.h:64
const std::string toString() const
Definition IOInterface.cc:259
bool operator==(const LinesRange &ll) const
Definition IOInterface.h:82
LinesRange()
Definition IOInterface.h:47
bool in(const size_t &ll) const
Is the provided line number within the current range?
Definition IOInterface.h:55
LinesRange(const size_t &l1, const size_t &l2)
Definition IOInterface.h:48
bool operator>(const size_t &ll) const
Is the provided line number after the start of the range?
Definition IOInterface.h:73
static std::vector< LinesRange > getLinesRestrictions(const std::string &args, const std::string &where, const bool &negate)
built the set of line ranges to read or skip.
Definition IOInterface.cc:273
Parameters
this enum provides names for possible meteogrids (from an ARPS file, etc)
Definition MeteoData.h:46