
Calculate NOAA's 7-day maximum Bleaching Alert Area composite
calculate_baa_7d.RdEach 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 bycalculate_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.