FREQCOR_Ref_cospectrum_for_plotting

Reference cospectrum models used for plotting in FREQCOR.

This module provides reference (co)spectrum parameterizations used for visualisation and comparison against measured (co)spectra.

Currently implemented models include: - Kaimal (1972)-type cospectrum parameterizations. - Kaimal cospectrum shape as implemented in EddyPro. - A Massman et al. (2004) model cospectrum.

Functions

Kaimal_cosp

Compute the Kaimal theoretical cospectrum.

Kaimal_cosp_EP

Compute the Kaimal cospectrum shape used in EddyPro.

Massman_cosp

Compute a model cospectrum according to Massman et al. (2004, Eq.

FREQCOR_Ref_cospectrum_for_plotting.Kaimal_cosp(nf, kf, zL)[source]

Compute the Kaimal theoretical cospectrum.

Parameters:
  • nf (float) – Natural frequency (Hz).

  • kf (float) – Normalized frequency (dimensionless).

  • zL (float) – Stability parameter (z/L).

Returns:

kaimal_cosp – Theoretical cospectrum value.

Return type:

float

FREQCOR_Ref_cospectrum_for_plotting.Kaimal_cosp_EP(fnorm, zL)[source]

Compute the Kaimal cospectrum shape used in EddyPro.

Parameters:
  • fnorm (float) – Normalized frequency (dimensionless).

  • zL (float) – Stability parameter (z/L).

Returns:

kaimal – Theoretical cospectrum shape value.

Return type:

float

FREQCOR_Ref_cospectrum_for_plotting.Massman_cosp(nf, kf, zL, A0, kf0, mu)[source]

Compute a model cospectrum according to Massman et al. (2004, Eq. 4.2).

Parameters:
  • nf (float) – Natural frequency (Hz).

  • kf (float) – Normalized frequency (dimensionless).

  • zL (float) – Stability parameter (z/L).

  • A0 (array-like) – Normalisation factor, [stable, unstable].

  • kf0 (array-like) – Frequency at which cospectrum attains highest value (fpeak), [stable, unstable].

  • mu (array-like) – Broadness factor, [stable, unstable].

Returns:

Cospws – Modelled cospectrum value.

Return type:

float