44 static Synthesizer*
getSynth(std::string type,
const std::string& station,
const StationData& sd,
const std::string& parname,
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const double& TZ);
58 SynthIO(
const std::string& configfile);
66 std::vector< std::vector<MeteoData> >& vecMeteo);
70 std::map< std::string, Synthesizer* > getSynthesizer(
const std::string& stationRoot,
const StationData &sd)
const;
73 std::map< std::string, std::map< std::string, Synthesizer* > > mapSynthesizers;
74 std::vector<StationData> vecStations;
75 Date dt_start, dt_end;
83 CST_Synth(
const std::string& station,
const std::string& parname,
const std::vector< std::pair<std::string, std::string> >& vecArgs);
91 STEP_Synth(
const std::string& station,
const std::string& parname,
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const double& TZ);
95 double value_before, value_after;
100 RECT_Synth(
const std::string& station,
const std::string& parname,
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const double& TZ);
103 Date step_start, step_stop;
104 double value, value_step;
Definition: SyntheticIO.h:81
virtual double generate(const Date &dt) const override
Definition: SyntheticIO.cc:247
CST_Synth(const std::string &station, const std::string &parname, const std::vector< std::pair< std::string, std::string > > &vecArgs)
Definition: SyntheticIO.cc:230
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
Definition: SyntheticIO.h:98
virtual double generate(const Date &dt) const override
Definition: SyntheticIO.cc:319
RECT_Synth(const std::string &station, const std::string &parname, const std::vector< std::pair< std::string, std::string > > &vecArgs, const double &TZ)
Definition: SyntheticIO.cc:287
Definition: SyntheticIO.h:107
STDPRESS_Synth(const StationData &sd)
Definition: SyntheticIO.cc:327
virtual double generate(const Date &dt) const override
Definition: SyntheticIO.cc:330
Definition: SyntheticIO.h:89
virtual double generate(const Date &dt) const override
Definition: SyntheticIO.cc:279
STEP_Synth(const std::string &station, const std::string &parname, const std::vector< std::pair< std::string, std::string > > &vecArgs, const double &TZ)
Definition: SyntheticIO.cc:252
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:41
Definition: SyntheticIO.h:42
static Synthesizer * getSynth(std::string type, const std::string &station, const StationData &sd, const std::string &parname, const std::vector< std::pair< std::string, std::string > > &vecArgs, const double &TZ)
Definition: SyntheticIO.cc:338
This plugin generate synthetic data.
Definition: SyntheticIO.h:56
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: SyntheticIO.cc:176
~SynthIO()
Definition: SyntheticIO.cc:86
SynthIO(const std::string &configfile)
Definition: SyntheticIO.cc:76
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: SyntheticIO.cc:184
Generator to produce synthetic data for the SynthIO plugin.
Definition: SyntheticIO.h:33
virtual ~Synthesizer()
Definition: SyntheticIO.h:36
virtual double generate(const Date &dt) const
Definition: SyntheticIO.h:38
const double nodata
This is the internal nodata value.
Definition: IOUtils.h:75