CurrentMeteo is the class of interpolated meteo data for the current calculation time step
It contains some additional and very important derived parameters such as the roughness length or running mean values.
#include <DataClasses.h>
Public Member Functions | |
CurrentMeteo () | |
CurrentMeteo (const SnowpackConfig &i_cfg) | |
void | reset (const SnowpackConfig &i_cfg) |
void | setMeasTempParameters (const mio::MeteoData &md) |
size_t | getNumberMeasTemperatures () const |
Returns the number of measured snow/soil temperatures stored in MeteoData. More... | |
size_t | getNumberFixedRates () const |
size_t | getMaxNumberMeasTemperatures () const |
void | getFixedPositions (std::vector< double > &positions) const |
size_t | getNumberFixedPositions () const |
void | copySnowTemperatures (const mio::MeteoData &md, const unsigned int ¤t_slope) |
void | copySolutes (const mio::MeteoData &md, const size_t &i_number_of_solutes) |
const std::string | toString () const |
Public Attributes | |
mio::Date | date |
Date of current meteo data. More... | |
double | ta |
Air temperature (K) More... | |
double | rh |
Relative humidity (% or 1) More... | |
double | rh_avg |
Running mean of relative humidity (1) More... | |
double | vw |
Wind velocity at snow station (m s-1) More... | |
double | vw_avg |
Running mean of wind velocity at snow station (m s-1) More... | |
double | vw_max |
Maximum wind velocity at snow station (m s-1) More... | |
double | dw |
Wind direction at snow station (deg) More... | |
double | vw_drift |
Wind velocity for blowing and drifting snow (operational: wind ridge station) More... | |
double | dw_drift |
Wind direction of blowing and drifting snow (operational: wind ridge station) More... | |
double | ustar |
The friction velocity (m s-1) computed in mt_MicroMet() and also used later for the MeteoHeat fluxes. More... | |
double | z0 |
The roughness length computed in SnowDrift and also used later for the MeteoHeat fluxes (m) More... | |
double | psi_s |
Stability correction for scalar heat fluxes. More... | |
double | iswr |
Incoming SHORTWAVE radiation (W m-2) More... | |
double | rswr |
Reflected SHORTWAVE radiation (W m-2) divide this value by the ALBEDO to get iswr. More... | |
double | mAlbedo |
Measured snow albedo. More... | |
double | diff |
Diffuse radiation from the sky (W m-2) More... | |
double | dir_h |
Horizontal direct radiation from the sky (W m-2) More... | |
double | elev |
Solar elevation to be used in Canopy.c (rad) => see also. More... | |
double | ea |
Atmospheric emissivity (1) More... | |
double | lw_net |
Net longwave radiation (W m-2) More... | |
double | tss |
Snow surface temperature (K) More... | |
double | tss_a12h |
Snow surface temperature averaged over past 12 hours (K) More... | |
double | tss_a24h |
Snow surface temperature averaged over past 24 hours (K) More... | |
double | ts0 |
Bottom temperatures of snow/soil pack (K) More... | |
double | psum |
precipitation sum over the current timestep (mm) More... | |
double | psum_ph |
precipitation phase for the current timestep (between 0 and 1, 0 is fully solid while 1 is fully liquid). More... | |
double | psum_tech |
Equivalent precipitation water sum for technical snow over the current timestep (mm) More... | |
double | hs |
The measured height of snow (m) More... | |
double | hs_a3h |
Snow depth averaged over 3 past hours. More... | |
double | hs_rate |
The rate of change in snow depth (m h-1) More... | |
double | geo_heat |
Geo heat flux (W/m^2), for the neumann lower boundary condition in the heat equation. More... | |
double | adv_heat |
Advective heat to inject in the soil (if ADVECTIVE_HEAT and related parameters set to true) More... | |
std::vector< double > | ts |
Measured snow or/and soil temperatures (K) More... | |
std::vector< double > | zv_ts |
Positions of all measured snow or/and soil temperatures (m) More... | |
std::vector< double > | conc |
Solute concentrations in precipitation. More... | |
double | rho_hn |
Measured new snow density (kg m-3) More... | |
double | rime_hn |
riming index of new snow More... | |
double | lwc_hn |
liquid water content of new snow More... | |
bool | poor_ea |
when ilwr has not been measured nor parametrized in good conditions, it could be redone later on More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CurrentMeteo &data) |
std::istream & | operator>> (std::istream &is, CurrentMeteo &data) |
CurrentMeteo::CurrentMeteo | ( | ) |
CurrentMeteo::CurrentMeteo | ( | const SnowpackConfig & | i_cfg | ) |
void CurrentMeteo::copySnowTemperatures | ( | const mio::MeteoData & | md, |
const unsigned int & | current_slope | ||
) |
void CurrentMeteo::copySolutes | ( | const mio::MeteoData & | md, |
const size_t & | i_number_of_solutes | ||
) |
void CurrentMeteo::getFixedPositions | ( | std::vector< double > & | positions | ) | const |
size_t CurrentMeteo::getMaxNumberMeasTemperatures | ( | ) | const |
size_t CurrentMeteo::getNumberFixedPositions | ( | ) | const |
size_t CurrentMeteo::getNumberFixedRates | ( | ) | const |
size_t CurrentMeteo::getNumberMeasTemperatures | ( | ) | const |
Returns the number of measured snow/soil temperatures stored in MeteoData.
void CurrentMeteo::reset | ( | const SnowpackConfig & | i_cfg | ) |
void CurrentMeteo::setMeasTempParameters | ( | const mio::MeteoData & | md | ) |
const std::string CurrentMeteo::toString | ( | ) | const |
|
friend |
|
friend |
double CurrentMeteo::adv_heat |
Advective heat to inject in the soil (if ADVECTIVE_HEAT and related parameters set to true)
std::vector<double> CurrentMeteo::conc |
Solute concentrations in precipitation.
mio::Date CurrentMeteo::date |
Date of current meteo data.
double CurrentMeteo::diff |
Diffuse radiation from the sky (W m-2)
double CurrentMeteo::dir_h |
Horizontal direct radiation from the sky (W m-2)
double CurrentMeteo::dw |
Wind direction at snow station (deg)
double CurrentMeteo::dw_drift |
Wind direction of blowing and drifting snow (operational: wind ridge station)
double CurrentMeteo::ea |
Atmospheric emissivity (1)
double CurrentMeteo::elev |
Solar elevation to be used in Canopy.c (rad) => see also.
double CurrentMeteo::geo_heat |
Geo heat flux (W/m^2), for the neumann lower boundary condition in the heat equation.
double CurrentMeteo::hs |
The measured height of snow (m)
double CurrentMeteo::hs_a3h |
Snow depth averaged over 3 past hours.
double CurrentMeteo::hs_rate |
The rate of change in snow depth (m h-1)
double CurrentMeteo::iswr |
Incoming SHORTWAVE radiation (W m-2)
double CurrentMeteo::lw_net |
Net longwave radiation (W m-2)
double CurrentMeteo::lwc_hn |
liquid water content of new snow
double CurrentMeteo::mAlbedo |
Measured snow albedo.
bool CurrentMeteo::poor_ea |
when ilwr has not been measured nor parametrized in good conditions, it could be redone later on
double CurrentMeteo::psi_s |
Stability correction for scalar heat fluxes.
double CurrentMeteo::psum |
precipitation sum over the current timestep (mm)
double CurrentMeteo::psum_ph |
precipitation phase for the current timestep (between 0 and 1, 0 is fully solid while 1 is fully liquid).
double CurrentMeteo::psum_tech |
Equivalent precipitation water sum for technical snow over the current timestep (mm)
double CurrentMeteo::rh |
Relative humidity (% or 1)
double CurrentMeteo::rh_avg |
Running mean of relative humidity (1)
double CurrentMeteo::rho_hn |
Measured new snow density (kg m-3)
double CurrentMeteo::rime_hn |
riming index of new snow
double CurrentMeteo::rswr |
Reflected SHORTWAVE radiation (W m-2) divide this value by the ALBEDO to get iswr.
double CurrentMeteo::ta |
Air temperature (K)
std::vector<double> CurrentMeteo::ts |
Measured snow or/and soil temperatures (K)
double CurrentMeteo::ts0 |
Bottom temperatures of snow/soil pack (K)
double CurrentMeteo::tss |
Snow surface temperature (K)
double CurrentMeteo::tss_a12h |
Snow surface temperature averaged over past 12 hours (K)
double CurrentMeteo::tss_a24h |
Snow surface temperature averaged over past 24 hours (K)
double CurrentMeteo::ustar |
The friction velocity (m s-1) computed in mt_MicroMet() and also used later for the MeteoHeat fluxes.
double CurrentMeteo::vw |
Wind velocity at snow station (m s-1)
double CurrentMeteo::vw_avg |
Running mean of wind velocity at snow station (m s-1)
double CurrentMeteo::vw_drift |
Wind velocity for blowing and drifting snow (operational: wind ridge station)
double CurrentMeteo::vw_max |
Maximum wind velocity at snow station (m s-1)
double CurrentMeteo::z0 |
The roughness length computed in SnowDrift and also used later for the MeteoHeat fluxes (m)
std::vector<double> CurrentMeteo::zv_ts |
Positions of all measured snow or/and soil temperatures (m)