Skip to contents

calculate_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.

Usage

calculate_dhmi(
  sst_raster,
  timeseries = c("daily", "monthly"),
  accumulation_window = 3L,
  timespan = c(12L, 5L)
)

Arguments

sst_raster

A daily or monthly terra::SpatRaster with 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.