
Calculate DHW
calculate_dhw.RdFunction to calculate Degree Heating Weeks (DHW).
The function computes the Degree Heating Weeks (DHW) metric, which accumulates
heat stress over a specified rolling window (defaulting to 84 days). If
anomaly >= 1, only daily hotspot values greater than or equal to that
threshold are included. If anomaly < 1, all non-NA hotspot values are
included without thresholding.