R/convertSathayeForest.R

Defines functions convertSathayeForest

Documented in convertSathayeForest

#' Convert Sathaye Forest data
#'
#' Convert Sathaye Forest data on ISO country level.
#'
#'
#' @param x MAgPIE object containing Sathaye Forest data region resolution
#' @return Sathaye Forest data as MAgPIE object aggregated/disaggregated to
#' country level
#' @author Lavinia Baumstark
#' @examples
#'
#' \dontrun{ a <- convertSathayeForest(x)
#' }
#'
convertSathayeForest <- function(x) {

  # convert data from $US-2000 into $US-2017
  y <- toolAggregate(x, "regionmappingSathayeForest.csv", weight = NULL)
  y <- toolConvertGDP(y, unit_in = "constant 2000 US$MER",
                      unit_out = "constant 2017 US$MER",
                      replace_NAs = "no_conversion")


  return(y)
}
pik-piam/mrland documentation built on Nov. 23, 2024, 11:37 a.m.