28 #define ARPS_MAX_LINE_LENGTH 6000
29 #define ARPS_MAX_STRING_LENGTH 256
43 ARPSIO(
const std::string& configfile);
59 void listFields(
const std::string& filename);
61 void initializeGRIDARPS(FILE* &fin,
const std::string& filename);
62 void initializeTrueARPS(FILE* &fin,
const std::string& filename,
const char curr_line[
ARPS_MAX_LINE_LENGTH]);
63 void openGridFile(FILE* &fin,
const std::string& filename);
64 void readGridLayer(FILE* &fin,
const std::string& filename,
const std::string& parameter,
const unsigned int& layer,
Grid2DObject& grid);
65 static void moveToMarker(FILE* &fin,
const std::string& filename,
const std::string& marker);
66 void skipToLayer(FILE* &fin,
const std::string& filename,
const unsigned int& layers)
const;
69 static const double plugin_nodata;
70 static const char* default_ext;
71 std::string coordin, coordinparam, coordout, coordoutparam;
72 std::string grid2dpath_in, grid3dpath_in;
74 unsigned int dimx, dimy, dimz;
76 double xcoord, ycoord;
77 std::vector<double> zcoord;
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
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: ARPSIO.cc:280
ARPSIO & operator=(const ARPSIO &)
Assignement operator, required because of pointer member.
Definition: ARPSIO.cc:84
A class to represent 3D Grids. Typical application: wind field.
Definition: Grid3DObject.h:38
This class enables the access to 2D grids stored in ARPS format.
Definition: ARPSIO.h:41
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: ARPSIO.cc:149
ARPSIO(const std::string &configfile)
Definition: ARPSIO.cc:64
virtual void readDEM(DEMObject &dem_out)
Parse the DEM (Digital Elevation Model) into the Grid2DObject.
Definition: ARPSIO.cc:324
#define ARPS_MAX_LINE_LENGTH
Definition: ARPSIO.h:28
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 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:79
Parameters
Definition: MeteoData.h:44