Statistics
Arithmetic routines
Functions for various arithmetic calculations.
|
Calculate running mean |
ASoP
Analyzing Scales of Precipitation.
|
Calculate ASoP parameters. |
|
Calculates bins with edges according to Eq. |
Bootstrapping
Routines for bootstrap calculations.
Calculate block bootstrap samples. |
Climate indices
Routines for various climate index calculations.
Calculate number of hotdays. |
|
Calculate number of extreme hotdays. |
|
Calculate number of tropical nights. |
|
|
Calculate Excessive Heat Index (EHI). |
|
Calculate the Consecutive Dry Days index (CDD). |
|
Rxx mm, count of any time units (days, hours, etc) when precipitation ≥ xx mm: Let RRij be the precipitation amount on time unit i in period j. |
|
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. |
|
RRtX mm, total amount of precipitation above the threshold 'thr'. |
|
SDII, Simple pricipitation intensity index: Let RRwj be the daily precipitation amount on wet days, w (RR ≥ 1mm) in period j. |
Convolution
This module includes functions to perform convolution, for example image smoothing, using scipy’s convolution routines.
|
Function to create a kernel, i.e. a moving window (box or disk) with side/radius equal to 'n'. |
|
1D and 2D filtering procedures. |
|
Prepare data array and kernel for fft computation. |
|
Convolve an ndarray with an nd-kernel. |
Probability distributions
|
Calculate frequency - instensity distriutions. |
|
Calculates probability of exceedance distriutions. |
|
Calculate the Perkins Skill Score (PSS). |
SAL module
Routines for calculation of SAL statistics.
|
Calculate the amplitude component (A). |
|
Function to calculate the structure component (S). |
|
Function to determine the location component (L). |
|
Function to calculate the threshold to be used to identify objects. |
Calculate distances |
|
Remove large objects based on the maximum size limit defined by 'max_size'. |
|
|
Perform the SAL calculation using the S, A, L functions. |
|
|
|
Run the SAL analysis on the two data sets 'data' and 'refdata', where the latter is supposed to represent the 'truth'. |