This function identifies heat waves that are a certain number of days long.
Number of days that a heat wave lasts under the user's definition
A vector of 1s and 0s the length of the number of days in the time series. 1 means the temperature for that day exceeds the calculated threshold; 0 means it does not exceed the threshold.
A dataframe containing information about the heat waves for this
series. It contains two columns: