Informatics and GIS Program Logo
Informatics and GIS Program

Computing Agroclimate Metrics in R

Workshop: Friday April 17. 1:00 - 3:00 pm PT

Agroclimate metrics are the backbone of all manner of mathematical models of crop development, crop management, site suitability, and pest pressure. Common metrics include:

  • degree days
  • frost days
  • first freeze
  • winter chill accumulation
  • extreme heat days
  • diurnal temperature range
  • maximum July temperature
  • total precipitation
  • and many others!
Image
Graphic of sun above tomato plants at different growth stages

This workshop will demonstrate how to compute common agroclimate metrics in R. We will also learn how to import into R weather data for past, present, and future modeled weather data using R packages like caladaptR and cimir., and compute metrics using tidyverse methods and specialized packages like degday.

Instructor

Prerequisites

Some experience with R and RStudio is expected (at least enough to run prepared scripts).

The hands-on exercises (recommended but not required) will require participants to have a free account on Posit Cloud (i.e., so you can run prepared scripts in RStudio in a browser). Experienced R users are welcome to run the exercises in RStudio Desktop or Positron (a link will be provided to download the exercises, but support will be limited).

Parts of the workshop will require you to follow along as the instructor demonstrates code to solve a problem. It is therefore highly recommended that you have a computer with two monitors, so you can view the instructor's screen on one monitor, and work in RStudio in the other. Participants who only have a small laptop with no external monitor may find it challenging to complete the hands-on exercises, and may just want to watch.

Registration

Click here to register. This is a free workshop. 

The workshop will be recorded and posted on the IGIS YouTube Channel.


This work is the result of a collaborative effort between UC ANR IGIS Statewide Program, and the USDA-NIFA/NSF AI Institute for Next Generation Food Systems (AIFS).