uwg.RSMDef module

Class for Rural Site Model (RSM) and Vertical Diffusion Model (VDM).

class uwg.RSMDef.RSMDef(lat, lon, gmt, height, T_init, P_init, parameter, z_meso_path)[source]

Bases: object

Rural Site Model (RSM) and Vertical Diffusion Model (VDM).

This class calculates the vertical profiles of air temperature above the weather station[1].

Note

[1] ‘The uwg’ (2012) Eq. 4, 5, 6.

Parameters:
  • lat – Number for latitude in degrees.

  • lon – Number for longitude in degrees.

  • gmt – Number for GMT hour correction.

  • height – Number for rural average obstacle height in meters.

  • T_init – Number for initial dry bulb temperature.

  • P_init – Number for initial pressure.

  • parameter – Param object for geographic parameters.

  • z_meso_path – Text string for height reference data filepath for mesoscale component.

Properties
  • z_meso – list of mesoscale heights.

  • lat – latitude [deg]

  • lon – longitude [deg]

  • gmt – GMT hour correction

  • height – average obstacle height [m]

  • z0r – rural roughness length [m]

  • disp – rural displacement lenght [m]

  • z – vertical height [m]

  • dz – vertical discretization [m]

  • nz0 – layer number at zmt [m]

  • nzref – layer number at zref [m]

  • nzfor – layer number at zfor [m]

  • nz10 – layer number at zmu [m]

  • nzi – layer number at zi_d [m]

  • tempProf – potential temperature profile at the rural site [K]

  • presProf – pressure profile at the rural site [Pa]

  • tempRealProf – real temperature profile at the rural site [K]

  • densityProfC – density profile at the center of layers [kg m-3]

  • densityProfS – density profile at the sides of layers [kg m-3]

  • windProf – wind profile at the rural site [m s-1]

  • ublPres – average pressure at UBL [Pa]

diffusion_coefficient(rho, z, dz, z0, disp, tempRur, heatRur, nz, uref, th, parameter)[source]
static diffusion_equation(nz, dt, co, da, daz, cd, dz)[source]
static dissipation_bougeault(g, nz, z, dz, te, pt)[source]
static invert(nz, A, C)[source]

Inversion and resolution of a tridiagonal matrix A X = C.

nz number of layers a(,1) lower diagonal (Ai, i-1) a(,2) principal diagonal (Ai, i) a(*,3) upper diagonal (Ai, i+1)

static length_bougeault(nz, dld, dlu, z)[source]
static load_z_meso(z_meso_path)[source]

Get list of mesoscale height reference data.

vdm(forc, rural, parameter, simTime)[source]

Vertical Diffusion Model[1].

Note: [1] ‘The uwg’ (2012), Eq. (4)