if (FALSE) {
# download daily gridded data
# using default settings (data written to tempdir())
download_daymet_ncss()
# read in the Daymet file and report back the number
# of days in a year with a minimum temperature lower
# than 15 degrees C
r <- calc_nd(file.path(tempdir(),"tmin_daily_1980_ncss.nc"),
criteria = "<",
value = 15,
internal = TRUE)
# plot the output
terra::plot(r)
}
Run the code above in your browser using DataLab