This functions allows to efficiently calculate the treecover and emissions indicators in a single function call together. Since most of the pre-processing operations for treecover and emissions are the same, it is more efficient to calculate them in one run if users are actually interested in both statistics. Otherwise users are advised to use the respective single indicator functions.
calc_treecover_area_and_emissions( years =2000:2023, min_size =10, min_cover =35)
Arguments
years: A numeric vector with the years for which to calculate treecover area and emissions.
min_size: The minimum size of a forest patch in ha.
min_cover: The minimum threshold of stand density for a pixel to be considered forest in the year 2000.
Returns
A function that returns an indicator tibble with variables treecover and emissions ind corresponding values (in ha and Mg) as value.