rcatool.stats.climateindex.RRpX

rcatool.stats.climateindex.RRpX(data, percentile, thr=None, axis=0, keepdims=False)[source]

RRpX mm, total amount of precipitation above the percentile threshold pX; RR ≥ pX mm: Let RRij be the daily precipitation amount on day i in period j. Sum the precipitation for all days where RRij ≥ pX mm.

Parameters:
  • data (array) – 1D/2D data array, with time steps on the zeroth axis (axis=0).

  • percentile (int) – Percentile that defines the threshold.

  • thr (float/int) – Pre-thresholding of data to do calculation for wet days/hours only.

  • keepdims (boolean) – If False (default) calculation is performed on all data collectively, otherwise for each timeseries on each point in 2d space. ‘Axis’ then defines along which axis the timeseries are located.

Returns:

RRpx – 1D/2D array with calculated RRpXX indices.

Return type:

list/array