39 PGMIO(
const std::string& configfile);
54 static bool readGridded(std::ifstream& fin,
const std::string& full_name,
const double& scale_factor,
const double& val_min,
Grid2DObject& grid_out);
55 static void readColumn(std::ifstream& fin,
const std::string& full_name,
const double& scale_factor,
const double& val_min,
Grid2DObject& grid_out);
56 void read2DGrid_internal(
Grid2DObject& grid_out,
const std::string& full_name)
const;
57 static size_t getNextHeader(std::vector<std::string>& vecString,
const std::string& filename, std::ifstream& fin);
60 static const double plugin_nodata;
61 std::string coordin, coordinparam, coordout, coordoutparam;
62 std::string grid2dpath_in, grid2dpath_out;
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 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 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 class writes 2D grids as Portable Grey Map file format.
Definition: PGMIO.h:37
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition: PGMIO.cc:286
PGMIO(const std::string &configfile)
Definition: PGMIO.cc:71
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: PGMIO.cc:251
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: PGMIO.cc:247
virtual void write2DGrid(const Grid2DObject &grid_in, const std::string &filename)
Write a Grid2DObject The filename is specified relative to GRID2DPATH for most plugins.
Definition: PGMIO.cc:293