SNOWPACK 20240621.6fbafe7
CurrentMeteo Class Reference

Detailed Description

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 &current_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)
 

Constructor & Destructor Documentation

◆ CurrentMeteo() [1/2]

CurrentMeteo::CurrentMeteo ( )

◆ CurrentMeteo() [2/2]

CurrentMeteo::CurrentMeteo ( const SnowpackConfig i_cfg)

Member Function Documentation

◆ copySnowTemperatures()

void CurrentMeteo::copySnowTemperatures ( const mio::MeteoData &  md,
const unsigned int &  current_slope 
)

◆ copySolutes()

void CurrentMeteo::copySolutes ( const mio::MeteoData &  md,
const size_t &  i_number_of_solutes 
)

◆ getFixedPositions()

void CurrentMeteo::getFixedPositions ( std::vector< double > &  positions) const

◆ getMaxNumberMeasTemperatures()

size_t CurrentMeteo::getMaxNumberMeasTemperatures ( ) const

◆ getNumberFixedPositions()

size_t CurrentMeteo::getNumberFixedPositions ( ) const

◆ getNumberFixedRates()

size_t CurrentMeteo::getNumberFixedRates ( ) const

◆ getNumberMeasTemperatures()

size_t CurrentMeteo::getNumberMeasTemperatures ( ) const

Returns the number of measured snow/soil temperatures stored in MeteoData.

◆ reset()

void CurrentMeteo::reset ( const SnowpackConfig i_cfg)

◆ setMeasTempParameters()

void CurrentMeteo::setMeasTempParameters ( const mio::MeteoData &  md)

◆ toString()

const std::string CurrentMeteo::toString ( ) const

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const CurrentMeteo data 
)
friend

◆ operator>>

std::istream & operator>> ( std::istream &  is,
CurrentMeteo data 
)
friend

Member Data Documentation

◆ adv_heat

double CurrentMeteo::adv_heat

Advective heat to inject in the soil (if ADVECTIVE_HEAT and related parameters set to true)

◆ conc

std::vector<double> CurrentMeteo::conc

Solute concentrations in precipitation.

◆ date

mio::Date CurrentMeteo::date

Date of current meteo data.

◆ diff

double CurrentMeteo::diff

Diffuse radiation from the sky (W m-2)

◆ dir_h

double CurrentMeteo::dir_h

Horizontal direct radiation from the sky (W m-2)

◆ dw

double CurrentMeteo::dw

Wind direction at snow station (deg)

◆ dw_drift

double CurrentMeteo::dw_drift

Wind direction of blowing and drifting snow (operational: wind ridge station)

◆ ea

double CurrentMeteo::ea

Atmospheric emissivity (1)

◆ elev

double CurrentMeteo::elev

Solar elevation to be used in Canopy.c (rad) => see also.

◆ geo_heat

double CurrentMeteo::geo_heat

Geo heat flux (W/m^2), for the neumann lower boundary condition in the heat equation.

◆ hs

double CurrentMeteo::hs

The measured height of snow (m)

◆ hs_a3h

double CurrentMeteo::hs_a3h

Snow depth averaged over 3 past hours.

◆ hs_rate

double CurrentMeteo::hs_rate

The rate of change in snow depth (m h-1)

◆ iswr

double CurrentMeteo::iswr

Incoming SHORTWAVE radiation (W m-2)

◆ lw_net

double CurrentMeteo::lw_net

Net longwave radiation (W m-2)

◆ lwc_hn

double CurrentMeteo::lwc_hn

liquid water content of new snow

◆ mAlbedo

double CurrentMeteo::mAlbedo

Measured snow albedo.

◆ poor_ea

bool CurrentMeteo::poor_ea

when ilwr has not been measured nor parametrized in good conditions, it could be redone later on

◆ psi_s

double CurrentMeteo::psi_s

Stability correction for scalar heat fluxes.

◆ psum

double CurrentMeteo::psum

precipitation sum over the current timestep (mm)

◆ psum_ph

double CurrentMeteo::psum_ph

precipitation phase for the current timestep (between 0 and 1, 0 is fully solid while 1 is fully liquid).

◆ psum_tech

double CurrentMeteo::psum_tech

Equivalent precipitation water sum for technical snow over the current timestep (mm)

◆ rh

double CurrentMeteo::rh

Relative humidity (% or 1)

◆ rh_avg

double CurrentMeteo::rh_avg

Running mean of relative humidity (1)

◆ rho_hn

double CurrentMeteo::rho_hn

Measured new snow density (kg m-3)

◆ rime_hn

double CurrentMeteo::rime_hn

riming index of new snow

◆ rswr

double CurrentMeteo::rswr

Reflected SHORTWAVE radiation (W m-2) divide this value by the ALBEDO to get iswr.

◆ ta

double CurrentMeteo::ta

Air temperature (K)

◆ ts

std::vector<double> CurrentMeteo::ts

Measured snow or/and soil temperatures (K)

◆ ts0

double CurrentMeteo::ts0

Bottom temperatures of snow/soil pack (K)

◆ tss

double CurrentMeteo::tss

Snow surface temperature (K)

◆ tss_a12h

double CurrentMeteo::tss_a12h

Snow surface temperature averaged over past 12 hours (K)

◆ tss_a24h

double CurrentMeteo::tss_a24h

Snow surface temperature averaged over past 24 hours (K)

◆ ustar

double CurrentMeteo::ustar

The friction velocity (m s-1) computed in mt_MicroMet() and also used later for the MeteoHeat fluxes.

◆ vw

double CurrentMeteo::vw

Wind velocity at snow station (m s-1)

◆ vw_avg

double CurrentMeteo::vw_avg

Running mean of wind velocity at snow station (m s-1)

◆ vw_drift

double CurrentMeteo::vw_drift

Wind velocity for blowing and drifting snow (operational: wind ridge station)

◆ vw_max

double CurrentMeteo::vw_max

Maximum wind velocity at snow station (m s-1)

◆ z0

double CurrentMeteo::z0

The roughness length computed in SnowDrift and also used later for the MeteoHeat fluxes (m)

◆ zv_ts

std::vector<double> CurrentMeteo::zv_ts

Positions of all measured snow or/and soil temperatures (m)


The documentation for this class was generated from the following files: