exceedance function

Detect consecutive days in exceedance above or below of a given threshold.