TransformToEDR#

class rojak.turbulence.analysis.TransformToEDR(computed_diagnostic, mean=None, variance=None, c1=None, c2=None)[source]#

Transforms turbulence diagnostic values into EDR

Using the mean and variance of the log-normal distribution of the turbulence diagnostic from the calibration dataset, converts turbulence diagnostic values into EDR. An implementation of the methodology described in [Sharman2017].

Parameters:
__init__(computed_diagnostic, mean=None, variance=None, c1=None, c2=None)[source]#
Parameters:
  • computed_diagnostic (DataArray) – Computed diagnostic values to map onto the EDR scale

  • mean (float | None) – Mean of the log-normal distribution of the diagnostic, as computed on the calibration dataset by ComputeDistributionParametersForEDR. If None, it is computed from computed_diagnostic when execute() is called. Must be provided together with variance.

  • variance (float | None) – Variance of the log-normal distribution of the diagnostic. See mean.

  • c1 (float | None) – Climatological scaling parameter. Defaults to the value in [Sharman2017] if omitted together with c2.

  • c2 (float | None) – Climatological scaling parameter. Defaults to the value in [Sharman2017] if omitted together with c1.

Raises:

TypeError – If only one of c1/c2 is provided

Return type:

None

Methods

__init__(computed_diagnostic[, mean, ...])

execute()

Map the diagnostic values onto the EDR scale