get_growing_degree_days
Calculate accumulated growing degree days for a location and date range from daily temperatures, using configurable base and upper temperature caps.
Instructions
Calculate accumulated growing degree days from daily temperatures.
Dates use ISO YYYY-MM-DD and the inclusive range is at most 366 days.
Temperatures and base/cap are degrees Celsius. The modified-average method
clamps Tmin and Tmax to the base and upper cap before averaging. Daily values
are returned for ranges up to 31 days, otherwise weekly summaries. Past dates
use ERA5 archive data and future dates use the forecast, merged when needed.
Example: get_growing_degree_days(38.54, -121.74, "2025-04-01", "2025-04-30").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes | ||
| method | No | modified_avg | |
| end_date | Yes | ||
| start_date | Yes | ||
| base_temp_c | No | ||
| upper_cap_c | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||