reassign_NA: Reassign raster NA values

View source: R/reassign_NA.R

reassign_NAR Documentation

Reassign raster NA values

Description

Internal functions to reassign raster NA values based on the surrounding cells

Usage

reassign_NA(map, window_size, replace_any = F)

Arguments

map

input raster file

window_size

diameter of moving window, including the focal cell

replace_any

logical, can NA values be filled with any other raster class?

Details

window_size of parameter includes the focal cell. For example, a window size of 5 would include 2 cells in each direction from the focal cell. If replace_any is false, the global environment must contain a vector called 'allow_classes' which specifies raster classes that can fill NA values. This is a sub-optimal solution because it requires configuring the global env correctly, but the focal functions does not accept more than two arguments, so I don't see any other way to do this...


land-4-bees/beecoSp documentation built on March 19, 2024, 3:45 p.m.