Skip to contents

Calculate daily SST anomalies

Usage

calculate_anomalies(
  sst_file,
  climatology,
  filename = "",
  overwrite = FALSE,
  wopt = list()
)

Arguments

sst_file

A daily SST terra::SpatRaster.

climatology

A daily climatology with identical geometry, layer count, and dates.

filename

Optional output filename.

overwrite

Overwrite an existing filename.

wopt

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

Value

A terra::SpatRaster of SST - daily climatology.