Skip to contents

Each output is the maximum of the current and previous six single-day BAA categories. A complete seven-day calendar window with seven non-missing values is required; incomplete windows are returned as NA.

Usage

calculate_baa_7d(
  baa,
  window = 7L,
  filename = "",
  overwrite = FALSE,
  wopt = list()
)

Arguments

baa

A single-day BAA terra::SpatRaster, normally returned by calculate_baa().

window

Composite window in calendar days. NOAA CRW uses 7.

filename

Optional output filename.

overwrite

Overwrite an existing file.

wopt

Named list of write options passed to terra::writeRaster().

Value

A daily terra::SpatRaster of 7-day maximum BAA categories.