
Legacy rolling monthly heat-stress calculation
calculate_dhmi.Rdcalculate_dhmi() is retained as a compatibility bridge. Its historical
algorithm was a rolling Degree Heating Month calculation, not the annual
standardized DHMI defined by Lough et al. (2018). New code should call
calculate_dhm() with an explicitly supplied MMM, or
calculate_dhmi_lough() for the Lough index.
Arguments
- sst_raster
A daily or monthly
terra::SpatRasterwith dates.- timeseries
Input resolution,
"daily"or"monthly".- accumulation_window
Rolling window length in months.
- timespan
Months retained in the legacy seasonal output. A two-element vector interpreted as an inclusive, cyclic start and end month.
Value
A legacy rolling degree-heating-month terra::SpatRaster.