24#include <meteoio/MeteoIO.h>
33 virtual bool snowCoverExists(
const std::string& i_snowfile,
const std::string& stationID)
const;
35 virtual void readSnowCover(
const std::string& i_snowfile,
const std::string& stationID,
42 const ProcessDat& Hdata,
const double wind_trans24);
46 virtual bool writeHazardData(
const std::string& stationID,
const std::vector<ProcessDat>& Hdata,
47 const std::vector<ProcessInd>& Hdata_ind,
const size_t& num);
56 bool appendFile(
const std::string& filename,
const mio::Date& startdate,
const std::string& ftype);
57 bool parseMetFile(
const char& eoln,
const mio::Date& start_date, std::istream& fin, std::ostream& ftmp);
58 bool parseProFile(
const char& eoln,
const mio::Date& start_date, std::istream& fin, std::ostream& ftmp);
59 bool parsePrfFile(
const char& eoln,
const mio::Date& start_date, std::istream& fin, std::ostream& ftmp);
61 std::string getFilenamePrefix(
const std::string& fnam,
const std::string& path,
const bool addexp=
true)
const;
63 void writeMETHeader(
const SnowStation& Xdata, std::ofstream &fout)
const;
64 void writeProHeader(
const SnowStation& Xdata, std::ofstream &fout)
const;
65 void writePrfHeader(
const SnowStation& Xdata, std::ofstream &fout)
const;
66 bool checkHeader(
const SnowStation& Xdata,
const std::string& filename,
const std::string& ext,
const std::string& signature)
const;
68 void writeProfilePro(
const mio::Date& date,
const SnowStation& Xdata,
const bool& aggregate);
69 void writeProfileProAddDefault(
const SnowStation& Xdata, std::ofstream &fout);
70 void writeProfileProAddCalibration(
const SnowStation& Xdata, std::ofstream &fout);
72 void writeProfilePrf(
const mio::Date& date,
const SnowStation& Xdata,
const bool& aggregate);
74 size_t writeTemperatures(std::ofstream &fout,
const double& z_vert,
const double& T,
77 double compPerpPosition(
const double& z_vert,
const double& hs_ref,
78 const double& ground,
const double& cos_sl);
79 double checkMeasuredTemperature(
const double& T,
const double& z,
const double& mH);
81 size_t findTaggedElement(
const size_t& tag,
const SnowStation& Xdata);
82 size_t writeHeightTemperatureTag(std::ofstream &fout,
const size_t& tag,
88 const double dhs_corr,
const double mass_corr,
89 const size_t nCalcSteps, std::ofstream &fout);
92 const double dhs_corr,
const double mass_corr,
93 const size_t nCalcSteps, std::ofstream &fout);
96 const double dhs_corr,
const double mass_corr,
97 const size_t nCalcSteps, std::ofstream &fout);
99 std::set<std::string> setAppendableFiles;
100 std::string metamorphism_model, variant, experiment, sw_mode;
101 std::string inpath, snowfile, i_snowpath, outpath, o_snowpath;
104 std::vector<std::string> vecProfileFmt;
108 std::vector<double> fixedPositions;
109 size_t numberMeasTemperatures, maxNumberMeasTemperatures;
110 size_t numberTags, numberFixedSensors, totNumberSensors;
113 double calculation_step_length, hazard_steps_between, ts_days_between;
114 double min_depth_subsurf, hoar_density_surf, hoar_min_size_surf;
115 bool useRichardsEq, enable_pref_flow, enable_ice_reservoir;
116 bool enable_vapour_transport;
117 bool avgsum_time_series, useCanopyModel, useSoilLayers, research_mode, perp_to_slope;
118 bool useReferenceLayer;
119 bool out_heat, out_lw, out_sw, out_meteo, out_haz, out_mass, out_t, out_load, out_stab, out_canopy, out_soileb;
121 std::string prof_ID_or_MK;
122 std::string prof_AGE_or_DATE;
124 static const bool t_srf, t_gnd;
virtual bool writeHazardData(const std::string &stationID, const std::vector< ProcessDat > &Hdata, const std::vector< ProcessInd > &Hdata_ind, const size_t &num)
Definition: AsciiIO.cc:2575
virtual void writeProfile(const mio::Date &date, const SnowStation &Xdata)
Write the Snow Profile Results, snow depth being taken VERTICALLY Prepare Output File for JAVA visual...
Definition: AsciiIO.cc:910
virtual bool snowCoverExists(const std::string &i_snowfile, const std::string &stationID) const
This routine checks if the specified snow cover data exists.
Definition: AsciiIO.cc:457
AsciiIO & operator=(const AsciiIO &)
Assignement operator, required because of const "info" member.
Definition: AsciiIO.cc:397
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: AsciiIO.cc:783
AsciiIO(const SnowpackConfig &i_cfg, const RunInfo &run_info)
Definition: AsciiIO.cc:319
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: AsciiIO.cc:477
virtual void writeTimeSeries(const SnowStation &Xdata, const SurfaceFluxes &Sdata, const CurrentMeteo &Mdata, const ProcessDat &Hdata, const double wind_trans24)
Write all Time Series results (*.met) All depths and water equivalents (mass) are taken VERTICALLY....
Definition: AsciiIO.cc:1891
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
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