32#include <meteoio/MeteoIO.h>
44 stab_index1(0.),
stab_height1(0.),
stab_index2(0.),
stab_height2(0.),
stab_index3(0.),
stab_height3(0.),
stab_index4(0.),
stab_height4(0.),
stab_index5(0.),
stab_height5(0.),
106 hn3(true),
hn6(true),
hn12(true),
hn24(true),
hn72(true),
hn72_24(true),
psum3(true),
psum6(true),
psum12(true),
psum24(true),
psum72(true),
108 stab_index1(true),
stab_height1(true),
stab_index2(true),
stab_height2(true),
stab_index3(true),
stab_height3(true),
stab_index4(true),
stab_height4(true),
stab_index5(true),
stab_height5(true),
149 std::vector<ProcessDat>& Hdata, std::vector<ProcessInd>& Hdata_ind);
152 ZwischenData& Zdata,
const double& newDrift,
const bool stationDriftIndex,
156 std::vector<double>& drift24,
const double& newDrift,
const SnowStation& Xdata,
157 const bool luvDriftIndex,
const bool north,
const bool south);
169 void actOnVector(std::vector<double>& oldVector,
const double& newValue,
const ActVec& action);
171 double compDriftIndex(std::vector<double>& vecDrift,
const double& drift,
const double& rho,
172 const unsigned int& nHours,
const double& slope_angle,
const ActVec& action);
175 std::vector<double>& vecDrift,
const double& newDriftValue,
const double slope_angle);
177 double compHoarIndex(std::vector<double> &oldHoar,
const double& newHoar,
178 const unsigned int& nHours,
const ActVec& action);
180 double compDewPointDeficit(
double TA,
double TSS,
double RH);
184 bool research_mode, enforce_measured_snow_heights, force_rh_water;
185 unsigned int nHz, hazard_steps_between;
187 double hoar_density_surf, hoar_min_size_surf;
CurrentMeteo is the class of interpolated meteo data for the current calculation time step It contai...
Definition: DataClasses.h:83
static const double wind_slab_density
Definition: Hazard.h:159
Hazard(const SnowpackConfig &cfg, const double duration)
Definition: Hazard.cc:54
void getHazardDataMainStation(ProcessDat &Hdata, ProcessInd &Hdata_ind, ZwischenData &Zdata, const double &newDrift, const bool stationDriftIndex, const SnowStation &Xdata, const CurrentMeteo &Mdata, const SurfaceFluxes &Sdata)
Compute the Hdata from main station data.
Definition: Hazard.cc:286
void initializeHazard(std::vector< double > &vecDrift, double slope_angle, std::vector< ProcessDat > &Hdata, std::vector< ProcessInd > &Hdata_ind)
Allocates and initializes Hazard data.
Definition: Hazard.cc:128
static const double typical_slope_length
Definition: Hazard.h:159
static const double maximum_drift
Definition: Hazard.h:160
static const double minimum_drift
Definition: Hazard.h:160
void getHazardDataSlope(ProcessDat &Hdata, ProcessInd &Hdata_ind, std::vector< double > &drift24, const double &newDrift, const SnowStation &Xdata, const bool luvDriftIndex, const bool north, const bool south)
Compute Hdata from virtual slope data.
Definition: Hazard.cc:512
Definition: DataClasses.h:604
Definition: SnowpackConfig.h:28
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
double psum72
72 h new snow water equivalent (kg m-2)
Definition: Hazard.h:77
double hn72
72 depth of snowfall (cm)
Definition: Hazard.h:70
double wind_trans24
24 h drifting snow index (cm)
Definition: Hazard.h:64
double en_bal
internal energy change (kJ m-2)
Definition: Hazard.h:92
double stab_height2
depth of stab_index2 (cm)
Definition: Hazard.h:83
double wind_trans
6 h drifting snow index (cm)
Definition: Hazard.h:63
double dhs_corr
snow depth correction in case of squezzing or blow-up (cm)
Definition: Hazard.h:97
unsigned int nHz
Number of hazard steps.
Definition: Hazard.h:50
double lwi_S
liquid water index for northerly and southerly slopes, respectively.
Definition: Hazard.h:95
double runoff
runoff (kg m-2)
Definition: Hazard.h:58
double tot_lwc
total liquid water content (kg m-2)
Definition: Hazard.h:57
double hn72_24
3 d sum of 24 h depth of snowfall (cm)
Definition: Hazard.h:71
double swe
snow water equivalent SWE (kg m-2)
Definition: Hazard.h:56
double stab_height5
depth of stab_index5 (cm)
Definition: Hazard.h:89
double hn12
12 h depth of snowfall (cm)
Definition: Hazard.h:68
double hoar_ind6
6 h surface hoar index (kg m-2)
Definition: Hazard.h:61
ProcessDat()
Definition: Hazard.h:38
double crust
height of melt-freeze crust on southern slope (cm)
Definition: Hazard.h:91
unsigned char loc_for_snow
Definition: Hazard.h:52
double dewpt_def
dew point deficit (degC)
Definition: Hazard.h:59
double t_top1
Definition: Hazard.h:94
double psum3
3 h new snow water equivalent (kg m-2)
Definition: Hazard.h:73
double ch
height of snow HS (cm)
Definition: Hazard.h:55
double t_top2
snow temperatures at depth 1 & 2, respectively (degC)
Definition: Hazard.h:94
signed char stab_class1
stability classes 1,3,5
Definition: Hazard.h:78
double stab_height1
depth of stab_index1 (cm)
Definition: Hazard.h:81
double stab_height4
depth of stab_index4 (cm)
Definition: Hazard.h:87
double hoar_ind24
24 h surface hoar index (kg m-2)
Definition: Hazard.h:62
double stab_index5
none
Definition: Hazard.h:88
double stab_index4
structural stability index SSI
Definition: Hazard.h:86
signed char stab_class2
profile type 0..10
Definition: Hazard.h:79
double psum6
6 h new snow water equivalent (kg m-2)
Definition: Hazard.h:74
double hn6
6 h depth of snowfall (cm)
Definition: Hazard.h:67
double lwi_N
Definition: Hazard.h:95
double stab_index3
skier stability index Sk38
Definition: Hazard.h:84
double stab_index2
natural stability index Sn38
Definition: Hazard.h:82
double mass_corr
mass correction from either forced erosion and squeezing (neg) or blowing up (pos) (cm)
Definition: Hazard.h:98
std::string stat_abbrev
Definition: Hazard.h:51
double hn_half_hour
half_hour depth of snowfall (cm)
Definition: Hazard.h:65
double hn3
3 h depth of snowfall (cm)
Definition: Hazard.h:66
double psum12
12 h new snow water equivalent (kg m-2)
Definition: Hazard.h:75
double stab_height3
depth of stab_index3 (cm)
Definition: Hazard.h:85
unsigned char loc_for_wind
Definition: Hazard.h:53
double stab_index1
deformation index Sdef
Definition: Hazard.h:80
double psum24
24 h new snow water equivalent (kg m-2)
Definition: Hazard.h:76
mio::Date date
Process date.
Definition: Hazard.h:49
double psum_half_hour
half_hour new snow water equivalent (kg m-2)
Definition: Hazard.h:72
double sw_net
surface energy input (kJ m-2)
Definition: Hazard.h:93
double hn24
24 depth of snowfall (cm)
Definition: Hazard.h:69
double hoar_size
24 h surface hoar size (mm)
Definition: Hazard.h:60
bool en_bal
Definition: Hazard.h:134
bool crust
Definition: Hazard.h:133
bool sw_net
Definition: Hazard.h:135
bool psum24
Definition: Hazard.h:126
bool hn72
Definition: Hazard.h:124
bool stab_index3
Definition: Hazard.h:130
bool stab_index1
Definition: Hazard.h:128
bool runoff
Definition: Hazard.h:119
bool dewpt_def
Definition: Hazard.h:120
bool loc_for_wind
Definition: Hazard.h:114
bool stab_class2
Definition: Hazard.h:127
bool stab_index5
Definition: Hazard.h:132
bool psum6
Definition: Hazard.h:126
bool wind_trans
Definition: Hazard.h:123
bool t_top2
Definition: Hazard.h:136
bool stab_index4
Definition: Hazard.h:131
bool hoar_size
Definition: Hazard.h:121
bool hn6
Definition: Hazard.h:124
bool stab_height2
Definition: Hazard.h:129
bool hn12
Definition: Hazard.h:124
bool stab_height3
Definition: Hazard.h:130
bool hn3
Definition: Hazard.h:124
bool hn72_24
Definition: Hazard.h:125
bool swe
Definition: Hazard.h:117
bool ch
Definition: Hazard.h:116
bool lwi_S
Definition: Hazard.h:137
bool tot_lwc
Definition: Hazard.h:118
bool stab_class1
Definition: Hazard.h:127
bool stab_height1
Definition: Hazard.h:128
bool stab_height4
Definition: Hazard.h:131
bool stat_abbrev
Definition: Hazard.h:112
bool psum72
Definition: Hazard.h:126
bool hn24
Definition: Hazard.h:124
bool wind_trans24
Definition: Hazard.h:123
bool psum12
Definition: Hazard.h:126
bool hoar_ind6
Definition: Hazard.h:122
bool t_top1
Definition: Hazard.h:136
ProcessInd()
Definition: Hazard.h:102
bool loc_for_snow
Definition: Hazard.h:113
bool hoar_ind24
Definition: Hazard.h:122
bool stab_index2
Definition: Hazard.h:129
bool stab_height5
Definition: Hazard.h:132
bool psum3
Definition: Hazard.h:126
bool lwi_N
Definition: Hazard.h:137