make_raster_from_tibble: Create raster layers from tibbles

Description Usage Arguments

Description

Analysis results loaded in tibble format can be overlayed with the project's raster mask layer with this function

Usage

1
2
make_raster_from_tibble(tbl, ref_raster, ref_idx, variable = NULL,
  write_path = NULL, and_return = FALSE)

Arguments

tbl

Result tibble

ref_raster

The reference mask raster layer (Stored as 'mask_ugke.tif' on the hard drive). ref_raster has to be the loaded raster layer or the full path to the '.tif' on the hard drive.

ref_idx

Logical vector that defines the raster cells of the raster layer to which result values should be assigned (Stored as 'has_value_mask.rds' on the hard drive). ref_idx has to be the loaded index vector or the full path to the '.rds' on the hard drive.

variable

(Optional) Character vector to define the variables in the tibble that should be converted to a raster layer. If variable is not defined, all columns are converted

write_path

(Optional) Character string to defie the path where the raster layers should be written as GeoTiffs. If write_path is not defined, the raster layers are returned to R by default.

and_return

(Optional) Logical. If and_return = TRUE, the raster layers are additionally returned in R, when they are written to the hard drive (write_path is set). drive


chrisschuerz/caprosion documentation built on May 8, 2019, 7:39 a.m.