24#include <meteoio/MeteoIO.h>
41 virtual bool snowCoverExists(
const std::string& i_snowfile,
const std::string& stationID)
const;
43 virtual void readSnowCover(
const std::string& i_snowfile,
const std::string& stationID,
50 const ProcessDat& Hdata,
const double wind_trans24);
54 virtual bool writeHazardData(
const std::string& stationID,
const std::vector<ProcessDat>& Hdata,
55 const std::vector<ProcessInd>& Hdata_ind,
const size_t& num);
58 static void writeHazFile(
const std::string& hazfilename,
const mio::Date& date,
62 std::string getFilenamePrefix(
const std::string& fnam,
const std::string& path,
const bool addexp=
true)
const;
63 void writeSnoFile(
const std::string& snofilename,
const mio::Date& date,
const SnowStation& Xdata,
const ZwischenData& Zdata,
const bool& write_pref_flow,
const bool& write_ice_reservoir)
const;
64 mio::Date read_snosmet(
const std::string& snofilename,
const std::string& stationID,
SN_SNOWSOIL_DATA& SSdata,
const bool& read_salinity)
const;
65 mio::Date read_snosmet_header(
const smet::SMETReader& sno_reader,
const std::string& stationID,
67 double compPerpPosition(
const double& z_vert,
const double& hs_ref,
const double& ground,
const double& cos_sl)
const;
68 std::string getFieldsHeader(
const SnowStation& Xdata)
const;
69 void writeTimeSeriesHeader(
const SnowStation& Xdata,
const double& tz, smet::SMETWriter& smet_writer)
const;
72 static void setBasicHeader(
const SnowStation& Xdata,
const std::string& fields, smet::SMETWriter& smet_writer);
73 static void setSnoSmetHeader(
const SnowStation& Xdata,
const mio::Date& date, smet::SMETWriter& smet_writer);
74 static void setFormatting(
const size_t& nr_solutes,
75 std::vector<int>& vec_width, std::vector<int>& vec_precision,
const bool& write_pref_flow,
const bool& write_ice_reservoir,
const bool& write_sea_ice);
77 static bool keyExists(
const smet::SMETReader& reader,
const std::string& key);
78 static double get_doubleval(
const smet::SMETReader& reader,
const std::string& keyname);
79 static double get_doubleval_no_error(
const smet::SMETReader& reader,
const std::string& key);
80 static int get_intval(
const smet::SMETReader& reader,
const std::string& keyname);
83 std::vector<double> fixedPositions;
84 std::string outpath, o_snowpath, experiment, inpath, i_snowpath;
85 std::string metamorphism_model, variant, sw_mode;
87 std::map<std::string, smet::SMETWriter*> tsWriters;
90 double calculation_step_length, ts_days_between;
91 double min_depth_subsurf;
92 bool avgsum_time_series, useCanopyModel, useSoilLayers, research_mode, perp_to_slope, precip_rates, haz_write;
93 bool useReferenceLayer;
94 bool out_heat, out_lw, out_sw, out_meteo, out_haz, out_mass, out_t, out_load, out_stab, out_canopy, out_soileb, out_inflate;
96 bool enable_pref_flow;
97 bool enable_ice_reservoir;
CurrentMeteo is the class of interpolated meteo data for the current calculation time step It contai...
Definition: DataClasses.h:83
class to collect the information about the current simulation (version, date)
Definition: DataClasses.h:849
SN_SNOWSOIL_DATA includes all important station parameters as well as LayerData.
Definition: DataClasses.h:230
virtual void readSnowCover(const std::string &i_snowfile, const std::string &stationID, SN_SNOWSOIL_DATA &SSdata, ZwischenData &Zdata, const bool &read_salinity)
This routine reads the status of the snow cover at program start.
Definition: SmetIO.cc:298
SmetIO(const SnowpackConfig &i_cfg, const RunInfo &run_info)
Definition: SmetIO.cc:147
SmetIO & operator=(const SmetIO &)
Assignement operator, required because of pointer member.
Definition: SmetIO.cc:227
virtual void writeSnowCover(const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata, const bool &forbackup=false)
This routine writes the status of the snow cover at program termination and at specified backup times...
Definition: SmetIO.cc:631
virtual bool snowCoverExists(const std::string &i_snowfile, const std::string &stationID) const
This routine checks if the specified snow cover data exists.
Definition: SmetIO.cc:278
mio::Date read_hazsmet(const std::string &hazfilename, ZwischenData &Zdata)
Definition: SmetIO.cc:322
static void writeHazFile(const std::string &hazfilename, const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata)
Definition: SmetIO.cc:653
virtual bool writeHazardData(const std::string &stationID, const std::vector< ProcessDat > &Hdata, const std::vector< ProcessInd > &Hdata_ind, const size_t &num)
Definition: SmetIO.cc:1453
virtual void writeProfile(const mio::Date &date, const SnowStation &Xdata)
Definition: SmetIO.cc:1448
virtual void writeTimeSeries(const SnowStation &Xdata, const SurfaceFluxes &Sdata, const CurrentMeteo &Mdata, const ProcessDat &Hdata, const double wind_trans24)
Definition: SmetIO.cc:1424
~SmetIO()
Definition: SmetIO.cc:217
Definition: DataClasses.h:604
Definition: SnowpackConfig.h:28
Definition: SnowpackIOInterface.h:27
Definition: DataClasses.h:733
ZwischenData contains "memory" information mainly for operational use It is used to prepare some para...
Definition: DataClasses.h:65
Structure of double values for output to SDB.
Definition: Hazard.h:37