#include <Hazard.h>
|
| Hazard (const SnowpackConfig &cfg, const double duration) |
|
void | initializeHazard (std::vector< double > &vecDrift, double slope_angle, std::vector< ProcessDat > &Hdata, std::vector< ProcessInd > &Hdata_ind) |
| Allocates and initializes Hazard data. More...
|
|
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. More...
|
|
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. More...
|
|
◆ Hazard()
Defines how the height of snow is going to be handled
- false: Depth of snowfall is determined from the water equivalent of snowfall (PSUM)
- true: The measured height of snow is used to determine whether new snow has been deposited. This setting MUST be chosen in operational mode.
This procedure has the disadvantage that if the snowpack settles too strongly extra mass is added to the snowpack.
New snow density is needed in both cases, either parameterized, measured, or fixed.
◆ getHazardDataMainStation()
Compute the Hdata from main station data.
- depths of snowfall hn({0.5, 3., 6., 12., 24., 72.}h) including water equivalents (psum)
- 3 days sum of 24h depths of snowfall
- surface hoar size and hoar index for 6 and 24 hours
- dewpoint deficit, SWE and total liquid water content, runoff, Profile type, Stability classes and indices, energy balance, and snow temperatures
- Note
- If there are no virtual slopes available, drifting snow index and thickness of surface crust may be computed from the main station if SNOW_EROSION is set
- Parameters
-
Hdata | |
Hdata_ind | |
Zdata | |
newDrift | |
stationDriftIndex | needs to be computed |
Xdata | |
Mdata | |
Sdata | |
◆ getHazardDataSlope()
void Hazard::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.
- drifting snow index for last 6 and 24 h
- liquid water index for north and south slope
- vertical thickness of melt-freeze crust, not buried deeper than 3 cm
- Note
- these values are only available for virtual slopes
- Parameters
-
Hdata | |
Hdata_ind | |
drift24 | vector of 48 previous driting snow values |
newDrift | value |
Xdata | |
luvDriftIndex | needs to be computed |
north | is slope aspect |
south | is slope aspect |
◆ initializeHazard()
void Hazard::initializeHazard |
( |
std::vector< double > & |
old_drift, |
|
|
double |
slope_angle, |
|
|
std::vector< ProcessDat > & |
Hdata, |
|
|
std::vector< ProcessInd > & |
Hdata_ind |
|
) |
| |
Allocates and initializes Hazard data.
- Computes a zeroth order drift index for the first time step w/o shifting old_drift!
- Parameters
-
*old_drift | |
slope_angle | (degree) |
Hdata | |
Hdata_ind | |
◆ maximum_drift
const double Hazard::maximum_drift = 5.0 |
|
static |
◆ minimum_drift
const double Hazard::minimum_drift = 0.0 |
|
static |
◆ typical_slope_length
const double Hazard::typical_slope_length = 70.0 |
|
static |
◆ wind_slab_density
const double Hazard::wind_slab_density = 77.0 |
|
static |
The documentation for this class was generated from the following files: