38 GeotopIO(
const std::string& configfile);
44 std::vector< std::vector<MeteoData> >& vecMeteo);
46 virtual void writeMeteoData(
const std::vector< std::vector<MeteoData> >& vecMeteo,
const std::string& name=
"");
49 std::string getValueForKey(
const std::string& line);
50 void initParamNames(std::map<std::string, size_t>& mapParam);
51 void readMetaData(
const std::string& metafile);
52 void identify_fields(
const std::vector<std::string>& tmpvec,
const std::string& filename,
53 std::vector<size_t>& indices,
MeteoData& md);
56 void parseDate(
const std::string& datestring,
const std::string& fileandline,
Date& date);
57 void parseMetaData(
const std::string& head,
const std::string& datastr, std::vector<std::string>& tmpvec);
61 size_t nr_of_stations;
62 std::vector< std::map <Date, std::streampos> > vec_streampos;
63 std::vector<mio::StationData> vecStation;
64 std::map<std::string, size_t> mapColumnNames;
65 static const double plugin_nodata;
66 std::string coordin, coordinparam, coordout, coordoutparam;
67 static const size_t sw_direct, sw_diffuse, cloud_factor;
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 handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
This class enables the access meteo data in legacy Geotop format.
Definition: GeotopIO.h:36
GeotopIO(const std::string &configfile)
Definition: GeotopIO.cc:70
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:209
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: GeotopIO.cc:196
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:101
GeotopIO(const GeotopIO &)
A class representing the IO Layer of the software Alpine3D. For each type of IO (File,...
Definition: IOInterface.h:98
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:107