30 #pragma warning(disable:4512)
37 A3DIO(
const std::string& configfile);
43 std::vector< std::vector<MeteoData> >& vecMeteo);
45 virtual void writeMeteoData(
const std::vector< std::vector<MeteoData> >& vecMeteo,
46 const std::string& name=
"");
48 virtual void readPOI(std::vector<Coords>& pts);
52 void read1DMeteo(
const Date& dateStart,
const Date& dateEnd, std::vector< std::vector<MeteoData> >&);
53 void read2DStations(
const Date& timestamp, std::vector<StationData>& vecStation);
54 void read2DMeteo(std::vector< std::vector<MeteoData> >&);
56 void constructMeteo2DFilenames(
const Date& i_startDate,
const Date& i_endDate, std::vector<std::string>& i_filenames);
57 bool readMeteoDataLine(std::string& line,
MeteoData& tmpdata, std::string filename);
59 void read2DMeteoData(
const std::string&,
const std::string&, std::map<std::string,size_t>& hashStations,
60 std::vector< std::vector<MeteoData> >&,
size_t& bufferindex);
61 void read2DMeteoHeader(
const std::string& filename, std::map<std::string, size_t>& hashStations,
62 std::vector<StationData>&);
63 size_t getNrOfStations(std::vector<std::string>& filenames,
64 std::map<std::string, size_t>& hashStations);
66 bool create1DFile(
const std::vector< std::vector<MeteoData> >& data);
67 bool writeHeader(
ofilestream &file,
const std::vector< std::vector<MeteoData> >& stations,
const std::string& parameter_name);
68 void open2DFile(
const std::vector< std::vector<MeteoData> >& stations,
69 const std::string& fileprefix,
const std::string& label,
const double& year,
71 bool write2DmeteoFile(
const std::vector< std::vector<MeteoData> >& data,
const unsigned int& parindex,
72 const std::string& filename,
const std::string& label);
73 void write2DMeteo(
const std::vector< std::vector<MeteoData> >& data);
78 std::string coordin, coordinparam, coordout, coordoutparam;
80 static const double plugin_nodata;
virtual void writeMeteoData(const std::vector< std::vector< MeteoData > > &vecMeteo, const std::string &name="")
Write vecMeteo time series to a certain destination.
Definition: A3DIO.cc:96
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: A3DIO.cc:105
virtual void readPOI(std::vector< Coords > &pts)
Read a list of points by their grid coordinates This allows for example to get a list of points where...
Definition: A3DIO.cc:643
A3DIO(const std::string &configfile)
Definition: A3DIO.cc:74
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: A3DIO.cc:125
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
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:41
A class that extends std::ofstream, adding some output functionality. Limiting the write access of th...
Definition: FStream.h:37