Calculate Annual Grid-Level Values from Monthly Raster Data The monthly_to_annual function computes annual grid-level values from a raster stack of monthly data, This function supports a wide range of agricultural sectors and accounts for variations in crop calendars.

monthly_to_annual(input_rack, SECTOR)

Arguments

input_rack

Raster rack of monthly value

SECTOR

choice of sector

Value

A data frame of grid-level annual value

Examples

if (FALSE) { # \dontrun{
annual_PWC <- monthly_to_annual(input_rack = month_PWC, SECTOR = "MAIZ_I")
annual_HS <- monthly_to_annual(input_rack = month_HS, SECTOR = "MAIZ_I")
} # }