Threshold function

Daily thresholds based on quantiles for n-dimensional arrays