This function updates BEM (broad ecosystem mapping) attributes based on VRI (vegetation resource inventory) attributes, according to the document "Corrections to the BEM map codes".

update_bem_from_vri(
  vri_bem,
  rivers,
  beu_bec,
  clear_site_ma = TRUE,
  use_ifelse = TRUE
)

Arguments

vri_bem

sf object that represent the combined vri & bem polygon feature class

rivers

sf object that represent Rivers polygon feature class (FWA_Rivers)

beu_bec

data.table object of allowed BEC and BEM Code Combos

clear_site_ma

boolean, if TRUE variable SITE_M1A, SITE_M2A will be cleared

use_ifelse

boolean, if TRUE correction done after the combine_duplicated_BEUMC will only be applied on rows that were not affected by the correction of duplicated BEUMC

Value

sf object which contains adjusted map codes

Details

This function performs some adjustments to BEM attributes based on VRI attributes :

  • Combine together components with duplicated BEUMC

  • Perform corrections based on BC Land Cover Classification Scheme (BCLCS) and land : assign related SDEC_1 to 10

  • Remove inadequate wetlands

  • Update STAND_... based on species