38 SASEIO(
const std::string& configfile);
44 std::vector< std::vector<MeteoData> >& vecMeteo);
48 void readStationIDs(std::vector<std::string>& vecStationID)
const;
49 static void parseStationID(
const std::string& stationID, std::string& stnAbbrev, std::string& stnNumber);
50 void getStationMetaData(
const std::string& stat_abk,
const std::string& stao_nr,
const std::string& sqlQuery,
51 std::vector<std::string>& vecMetaData);
52 void readStationMetaData();
53 void readData(
const Date& dateStart,
const Date& dateEnd, std::vector< std::vector<MeteoData> >& vecMeteo,
54 const size_t& stationindex,
const std::vector<StationData>& vecMeta)
const;
55 static void convertUnits(
MeteoData& meteo);
56 void parseDataSet(
const std::vector<std::string>& i_meteo,
MeteoData& md)
const;
57 bool getStationData(
const std::string& stat_abk,
const std::string& stao_nr,
const Date& dateS,
58 const Date& dateE,
const std::vector<std::string>& vecHTS1,
59 std::vector< std::vector<std::string> >& vecMeteoData)
const;
62 std::vector<std::string> vecStationIDs;
63 std::vector<StationData> vecStationMetaData;
64 std::string mysqlhost, mysqldb, mysqluser, mysqlpass;
65 std::string coordin, coordinparam, coordout, coordoutparam;
66 double in_dflt_TZ, out_dflt_TZ;
68 static const double plugin_nodata;
69 static const std::string MySQLQueryStationMetaData;
70 static const std::string MySQLQueryMeteoData;
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
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
This is the plugin required to get meteorological data from the SASE database.
Definition: SASEIO.h:36
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: SASEIO.cc:196
SASEIO(const std::string &configfile)
Definition: SASEIO.cc:64
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: SASEIO.cc:189