SNOWPACK 20240717.43bd1bf
SnowProfileLayer Class Reference

Detailed Description

Defines structure for snow profile layers.

#include <DataClasses.h>

Public Member Functions

 SnowProfileLayer ()
 
void average (const double &w1, const double &w2, const SnowProfileLayer &Pdata)
 Determines the averaged quantities of the current layer with another layer. More...
 

Static Public Member Functions

static std::vector< SnowProfileLayergenerateProfile (const mio::Date &dateOfProfile, const SnowStation &Xdata, const double hoar_density_surf, const double hoar_min_size_surf)
 Generates a snow profile from snow station data (1 element = 1 layer) More...
 

Public Attributes

mio::Date profileDate
 Date of profile. More...
 
std::string stationname
 
unsigned char loc_for_snow
 
unsigned char loc_for_wind
 
mio::Date depositionDate
 Date of deposition (mainly used for snow layers) More...
 
double height
 Height of snow or snow depth; 0 to 1000 (cm) More...
 
double rho
 0 to 1000 (kg m-3) More...
 
double T
 -50 to 50, snow temperature at top of layer (degC) More...
 
double gradT
 -1000 to 1000, temperature gradient across layer (K m-1) More...
 
double v_strain_rate
 0 to 1.0e-5, viscous strain rate (s-1) More...
 
double theta_i
 0 to 1, volume fraction of ice (-) More...
 
double theta_w
 0 to 1, volume fraction of water (-) More...
 
double theta_a
 0 to 1, volume fraction of air (-) More...
 
double grain_size
 0 to 100 (mm) More...
 
double bond_size
 0 to 100 (mm) More...
 
double dendricity
 0 to 1 (1) More...
 
double sphericity
 0 to 1 (1) More...
 
double ogs
 0 to 100, optical equivalent grain size (mm) More...
 
double coordin_num
 0 to 10 (1) More...
 
unsigned short int marker
 0 to 999 (1) More...
 
short unsigned int type
 0 to 999 (1) More...
 
double hard
 0. to 5. (1) More...
 

Constructor & Destructor Documentation

◆ SnowProfileLayer()

SnowProfileLayer::SnowProfileLayer ( )

Member Function Documentation

◆ average()

void SnowProfileLayer::average ( const double &  Lp0,
const double &  Lp1,
const SnowProfileLayer profile_layer 
)

Determines the averaged quantities of the current layer with another layer.

Parameters
Lp1Thickness (weight) of layer Pdata
Lp0Thickness (weight) of current layer
profile_layerto average with

◆ generateProfile()

std::vector< SnowProfileLayer > SnowProfileLayer::generateProfile ( const mio::Date &  dateOfProfile,
const SnowStation Xdata,
const double  hoar_density_surf,
const double  hoar_min_size_surf 
)
static

Generates a snow profile from snow station data (1 element = 1 layer)

Parameters
dateOfProfile
Xdata
hoar_density_surf
hoar_min_size_surf

Member Data Documentation

◆ bond_size

double SnowProfileLayer::bond_size

0 to 100 (mm)

◆ coordin_num

double SnowProfileLayer::coordin_num

0 to 10 (1)

◆ dendricity

double SnowProfileLayer::dendricity

0 to 1 (1)

◆ depositionDate

mio::Date SnowProfileLayer::depositionDate

Date of deposition (mainly used for snow layers)

◆ gradT

double SnowProfileLayer::gradT

-1000 to 1000, temperature gradient across layer (K m-1)

◆ grain_size

double SnowProfileLayer::grain_size

0 to 100 (mm)

◆ hard

double SnowProfileLayer::hard

0. to 5. (1)

◆ height

double SnowProfileLayer::height

Height of snow or snow depth; 0 to 1000 (cm)

◆ loc_for_snow

unsigned char SnowProfileLayer::loc_for_snow

◆ loc_for_wind

unsigned char SnowProfileLayer::loc_for_wind

◆ marker

unsigned short int SnowProfileLayer::marker

0 to 999 (1)

◆ ogs

double SnowProfileLayer::ogs

0 to 100, optical equivalent grain size (mm)

◆ profileDate

mio::Date SnowProfileLayer::profileDate

Date of profile.

◆ rho

double SnowProfileLayer::rho

0 to 1000 (kg m-3)

◆ sphericity

double SnowProfileLayer::sphericity

0 to 1 (1)

◆ stationname

std::string SnowProfileLayer::stationname

◆ T

double SnowProfileLayer::T

-50 to 50, snow temperature at top of layer (degC)

◆ theta_a

double SnowProfileLayer::theta_a

0 to 1, volume fraction of air (-)

◆ theta_i

double SnowProfileLayer::theta_i

0 to 1, volume fraction of ice (-)

◆ theta_w

double SnowProfileLayer::theta_w

0 to 1, volume fraction of water (-)

◆ type

short unsigned int SnowProfileLayer::type

0 to 999 (1)

◆ v_strain_rate

double SnowProfileLayer::v_strain_rate

0 to 1.0e-5, viscous strain rate (s-1)


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