This takes a raster_layer or raster_stack, a model object and a character vector as filename, predicts a new raster_layer using the model object, saves it to path and returns that path
1 | rg_predict_save(object, model, path, format = "GTiff", ...)
|
object |
A Raster* object. The names of the single layers have to match the variables in "model". |
model |
A model that is used to generate predictions from "object" |
path |
A character vector, the predicted Raster* object will be stored under this path. |
... |
Further parameters passed on to raster::predict |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.