predict_landscape: Predict Landscape

View source: R/predict_landscape.R

predict_landscapeR Documentation

Predict Landscape

Description

Takes a mlr model object and associated covariate rasters to generate a thematic map. In order to process the landscape level prediction the input co-variated are tiled and then mosaic'd together at the end.

Usage

predict_landscape(model, cov, tilesize = 500, outDir = "./predicted")

Arguments

model

Location of a mlr model object (i.e. path to it.)

cov

A list of raster files. These will be loaded as a stars object

tilesize

Specify the number of pixels in the x and y directions for the tiles to be generated. If your computer is mememory limited use a smaller tile (e.g. 500).

outDir

directory for the output file.

Details

Action _is there a bug in tilemaker or with stars causing a xy offset error. Solution is currently a hack. See load tile area.

Examples

### Testing

                 cov = cov,
                 tilesize = 1000,
                 outDir = "e:/tmp/predict_landscape")

ColinChisholm/pemgeneratr documentation built on March 14, 2023, 10:47 p.m.