fnc_fill_bze_reg: Filling and reducing the BZE_reg-rasters

View source: R/fnc_fill_bze_reg.R

fnc_fill_bze_regR Documentation

Filling and reducing the BZE_reg-rasters

Description

This function takes the BZE-raster and fills potentially missing data to the current extent of forest in BW. Cells are filled with a focal moving window approach. Furthermore, small bits of unconnected forest below 1 ha are deleted. Those are usually parks and hedges. Filled rasters are stored under the same name in a different folder that can be changed if necessary.

Usage

fnc_fill_bze_reg(
  which_rasters = NA,
  cells_belt = 6,
  distance_thres = 400,
  verbose = T
)

Arguments

cells_belt

numeric. Number of cells of moving window. The bigger, the coarser the mean value of the filled cells.

distance_thres

numeric. Maximum distance that should be covered by gap-filling-process.

verbose

shall current raster in progress be printed to the console

which_raster

selection of rasters to be processed. Must be character string with ".tif" endings. With default NA, all rasters in path_models_in will be processed.

Value

updates the filled BZE_reg rasters


rhabel/modLWFB90 documentation built on Nov. 21, 2024, 3:28 a.m.