Interactive Parameter Explorer
This page lets you feel how the two key parameter choices in the HDP workflow, namely the threshold and the heatwave definition [min_duration, max_break, max_subs], change which days count as a heatwave. It runs entirely in your browser on a small synthetic slice of data.
The top pane shows a 30-day temperature time series that rises and then falls with some daily noise, along with a flat threshold line. The bottom pane illustrates how heatwaves can are identified by a step classification:
0- not hot (at or below the threshold)1- hot day (above the threshold, but not part of a qualifying heatwave)2- heatwave day (part of an event that satisfies the heatwave definition)
Move the sliders to update the bottom pane. This mirrors how the HDP computes heatwaves via hdp.metric.index_heatwaves().
Note
The threshold here is a single value for illustration. In HDP, the threshold is typically a percentile computed for each day of the year from a baseline measure, so the real cutoff varies across the calendar rather than being a flat line. See the Overview for how thresholds are actually derived.
Heatwave Metric Interpretations
The four boxes below the panes report the HDP metrics computed over this slice (not per-season, as in a real run):
HWN - number of distinct heatwave events
HWF - total heatwave days
HWD - length of the longest event
HWA - mean event length