Used internally in overlayStacks
. Function to be applied to each row
of a data.table
containing information of whether the species layer
exists in the HQ and LQ data.
Only overlays if data exists in both layers, otherwise returns the layer with data.
.overlay(SPP, HQ, LQ, hqLarger, highQualityStack, lowQualityStack, outputFilenameSuffix = "overlay", destinationPath)
SPP |
|
---|---|
HQ |
|
LQ |
|
highQualityStack | high quality list/stack of rasters (will be used preferencially) |
lowQualityStack | low quality list/stack of rasters (will be used to fill NAs in highQualityStack) |
outputFilenameSuffix | file suffix to save raster if there was overlaying. Defautls to "overlay" |
destinationPath | directory for saved rasters |