nc_gs.Rd
Find growing season and save output to a netCDF file.
nc_gs(
filename,
varid,
thr = 0,
timeid = "time",
latid = "lat",
lonid = "lon",
cpus = 2,
filter = NULL,
overwrite = TRUE,
output_filename = NULL,
FUN = mean
)
Filename for the netCDF input (relative or absolute path).
String with the main variable identifier.
Growing season threshold.
String with the time dimension identifier.
String with the latitude dimension identifier.
String with the longitude dimension identifier.
Number of CPUs to use for the computation.
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.
Boolean flag to indicate if the output file should be overwritten (if it exists).
Output filename.
function to apply to get the growing season. Typically
mean
or sum
.