predict function

Spatial WOFOST model predictions

Spatial WOFOST model predictions

Make spatial predictions with a WOFOST model. First create a model, then use the model with a SpatDataSet of weather and a SpatRaster of soil properties to make spatial predictions.

## S4 method for signature 'Rcpp_WofostModel' predict(object, weather, mstart, soilindex=NULL, soils=NULL, filename="", overwrite=FALSE, ...)

Arguments

  • object: WOFOST model
  • weather: SpatRasterDataset with weather data. The must be six sub-datasets with daily weather data for the same days and these names: tmin, tmax, prec, srad, wind and vapr
  • mstart: dates to start the model
  • soilindex: SpatRaster. postive integer with the ID for the soil type to use
  • soils: list of wofost soil types
  • filename: character. Output filename. Optional
  • overwrite: logical. If TRUE, filename is overwritten
  • ...: list. Options for writing files as in writeRaster

Returns

SpatRaster

  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2021-10-01