advection.advection

Main module.

Functions

air_density(P, T, q[, R_dry, R_vap])

Calculate moist air density [kg/m^3] given pressure, temperature, and humidity.

air_heat_storage(rho, Cp, dT_dt, zm, h)

Compute the air-column sensible-heat storage term J (W/m^2).

compute_bowen_ratio_variance([sigma_T, ...])

Compute the variance (flux-variance) Bowen ratio beta with sign.

compute_sensible_heat_flux(w_T_prime, rho_air)

Compute the sensible heat flux H (W/m^2) from the kinematic heat flux w'T'.

compute_soil_heat_storage_flux(Csoil, dT_dt)

Compute soil heat storage flux Gs (W/m^2) from the soil volumetric heat capacity and the temperature change rate.

compute_std(series)

Compute the standard deviation of a time series.

correct_sonic_heat_flux(w_Ts, T_mean, beta)

Convert sonic (virtual) temperature flux w'Ts' to the true kinematic sensible-heat flux w'T' by removing the humidity contribution.

latent_heat_flux_bowen(Rnet, G, beta[, ...])

Compute latent heat flux (λE) using the Bowen ratio method (no fast data needed).

latent_heat_flux_residual(Rnet, G, H)

Compute latent heat flux (λE) as the residual of the energy balance.

latent_heat_vaporization(T)

Compute latent heat of vaporization of water (Lv) at temperature T.

rh_to_specific_humidity(RH, T[, P])

Convert relative humidity to specific humidity.

specific_heat_moist_air(q)

Calculate the specific heat capacity of moist air [J/(kg K)] given the specific humidity.

total_ground_heat_flux(Gd, Gs)

Compute the storage-corrected ground heat flux G by adding the raw ground flux Gd and the storage term Gs.

virtual_temperature(T, q)

Calculate virtual temperature T_v (K) for moist air.

wpl_latent_heat_flux(w_rhov, w_T, rho_v, T, ...)

Convenience WPL (Webb-Pearman-Leuning 1980) density-corrected latent heat flux.