Find growing degree days above thr and save output to a netCDF file.

gdd0(
  filename,
  varid,
  thr = 0,
  timeid = "time",
  latid = "lat",
  lonid = "lon",
  cpus = 2,
  filter = NULL,
  overwrite = TRUE,
  output_filename = NULL,
  FUN = sum
)

Arguments

filename

Filename for the netCDF input (relative or absolute path).

varid

String with the main variable identifier.

thr

Growing season threshold.

timeid

String with the time dimension identifier.

latid

String with the latitude dimension identifier.

lonid

String with the longitude dimension identifier.

cpus

Number of CPUs to use for the computation.

filter

Variable to be use as filter for the growing season, generally a structure with temperature data. It must have the same dimensions of the main variable.

overwrite

Boolean flag to indicate if the output file should be overwritten (if it exists).

output_filename

Output filename.

FUN

function to apply to get the growing season. Typically mean or sum.