37 GeotopIO(
const std::string& configfile);
43 std::vector< std::vector<MeteoData> >& vecMeteo);
45 virtual void writeMeteoData(
const std::vector< std::vector<MeteoData> >& vecMeteo,
const std::string& name=
"");
48 std::string getValueForKey(
const std::string& line);
49 void initParamNames(std::map<std::string, size_t>& mapParam);
50 void readMetaData(
const std::string& metafile);
51 void identify_fields(
const std::vector<std::string>& tmpvec,
const std::string& filename,
52 std::vector<size_t>& indices,
MeteoData& md);
55 void parseDate(
const std::string& datestring,
const std::string& fileandline,
Date& date);
56 void parseMetaData(
const std::string& head,
const std::string& datastr, std::vector<std::string>& tmpvec);
60 size_t nr_of_stations;
61 std::vector< std::map <Date, std::streampos> > vec_streampos;
62 std::vector<mio::StationData> vecStation;
63 std::map<std::string, size_t> mapColumnNames;
64 static const double plugin_nodata;
65 std::string coordin, coordinparam, coordout, coordoutparam;
66 static const size_t sw_direct, sw_diffuse, cloud_factor;
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
GeotopIO(const std::string &configfile)
Definition: GeotopIO.cc:61
virtual void writeMeteoData(const std::vector< std::vector< MeteoData > > &vecMeteo, const std::string &name="")
Write vecMeteo time series to a certain destination.
Definition: GeotopIO.cc:91
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:58
This class enables the access meteo data in legacy Geotop format.
Definition: GeotopIO.h:35
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: GeotopIO.cc:185
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:101
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: GeotopIO.cc:197