environmentaltools.common.nonstationary_ecdf

environmentaltools.common.nonstationary_ecdf(data: DataFrame, variable: str, wlen: float = 0.038329911019849415, equal_windows: bool = False, pemp: list = None)[source]

Computes empirical percentiles using a moving window.

Parameters:
  • data (pd.DataFrame) – Time series.

  • variable (str) – Name of the variable.

  • wlen (float) – Length of window in years (default 14 days).

  • equal_windows (bool) – If True, use equal window size.

  • pemp (list, optional) – Empirical percentiles to use.

Returns:

Values of the given non-stationary percentiles. list: Chosen empirical percentiles.

Return type:

pd.DataFrame