52 bool in(
const size_t& ll)
const {
95 static std::vector< LinesRange >
getLinesRestrictions(
const std::string& args,
const std::string& where,
const bool& negate);
97 const std::string
toString()
const {std::ostringstream os; os <<
"[" <<
start <<
" - " <<
end <<
"]";
return os.str();}
105 static void mergeLinesRanges(std::vector< LinesRange >& lines_specs);
255 std::vector< std::vector<MeteoData> >& vecMeteo);
280 virtual void writeMeteoData(
const std::vector< std::vector<MeteoData> >& vecMeteo,
281 const std::string& name=
"");
303 virtual void readPOI(std::vector<Coords>& pts);
340 static double computeGridXYCellsize(
const std::vector<double>& vecX,
const std::vector<double>& vecY);
344 typedef enum VERSIONING_TYPE {
361 static std::string
buildVersionString(
const VersioningType& versioning,
const std::vector< std::vector<MeteoData> >& vecMeteo,
const double& tz,
const std::string& versioning_str);
363 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:118
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:156
virtual ~IOInterface()
Definition IOInterface.h:120
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition IOInterface.cc:119
VersioningType
Definition IOInterface.h:344
@ DATA_END
date of the end of the data
Definition IOInterface.h:349
@ NOW
creation time
Definition IOInterface.h:347
@ DATA_YEARS
start and end year of the data (if they are the same, it is not repeated)
Definition IOInterface.h:350
@ STRING
fixed string, user provided
Definition IOInterface.h:346
@ DATA_START
date of the start of the data
Definition IOInterface.h:348
@ NO_VERSIONING
no type selected
Definition IOInterface.h:345
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:179
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition IOInterface.cc:104
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:94
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:71
static void set2DGridLatLon(Grid2DObject &grid, const double &i_ur_lat, const double &i_ur_lon)
Definition IOInterface.cc:166
virtual void readGlacier(Grid2DObject &glacier_out)
Parse the input glacier grid into the Grid2DObject.
Definition IOInterface.cc:114
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:224
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:130
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:146
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:76
static double computeGridXYCellsize(const std::vector< double > &vecX, const std::vector< double > &vecY)
Definition IOInterface.cc:173
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:141
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:86
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:124
virtual void readLanduse(Grid2DObject &landuse_out)
Parse the landuse model into the Grid2DObject.
Definition IOInterface.cc:109
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:136
A class to represent and handle ranges of lines. They can be sorted, checked for uniqueness and a lin...
Definition IOInterface.h:42
bool operator<(const LinesRange &ll) const
Definition IOInterface.h:74
size_t end
Definition IOInterface.h:99
size_t start
Definition IOInterface.h:99
bool operator<(const size_t &ll) const
Is the provided line number before the end of the range?
Definition IOInterface.h:61
const std::string toString() const
Definition IOInterface.h:97
bool operator==(const LinesRange &ll) const
Definition IOInterface.h:79
LinesRange()
Definition IOInterface.h:44
bool in(const size_t &ll) const
Is the provided line number within the current range?
Definition IOInterface.h:52
LinesRange(const size_t &l1, const size_t &l2)
Definition IOInterface.h:45
bool operator>(const size_t &ll) const
Is the provided line number after the start of the range?
Definition IOInterface.h:70
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:260
Parameters
this enum provides names for possible meteogrids (from an ARPS file, etc)
Definition MeteoData.h:46