R/convertACCMIP.R

Defines functions convertACCMIP

Documented in convertACCMIP

#' @title convertACCMIP
#' @description function to convert ACCMIP data to isocountry resolution
#'
#' @param x MAgPIE object
#'
#' @return MAgPIE object
#'
#' @author Roman Popov, Felicitas Beier
#'
#' @examples
#' \dontrun{
#' readSource("ACCMIP", subtype = "nhx_1850")
#' }
convertACCMIP <- function(x) {
  y <- toolConv2CountryByCelltype(x, cells = "lpjcell")
  y <- toolCountryFill(y, fill = NA)

  return(y)
}
pik-piam/mrcommons documentation built on Dec. 8, 2024, 7:23 a.m.