witch-team / witchtools

Data management tools for the WITCH modeling framework, but not only...
https://witchtools.witchmodel.org
Other
5 stars 2 forks source link
integrated-assessment-model package r

witchtools

witchtools provides a toolkit to manage data in integrated assessment models. witchtools is part of the tool ecosystem of the WITCH model. The package makes it possible to easily and transparently reproduce the data processing between the raw data, the data used in the model and the results uploaded in the IAMC database. While the package has been developed for the WITCH model, it is already used to simply process data for other uses or models.

Lifecycle:
maturing devel:0.4.10 codecov

Features

Installation

if (!requireNamespace("remotes"))
  install.packages("remotes")

remotes::install_github("witch-team/witchtools")

Usage

library(witchtools)

# Convert from 17 WITCH regions to the 5 SSP regions 
gdp_r5 <- convert_region(gdp_witch17, to_reg = 'r5')

# Convert from yearly to the WITCH time perdios
dd_t30 <- convert_region(dd_year, time_mapping = 't30')

# for WITCH user: Generate input data of the WITCH model
witch_translate_data(region = 'witch17', timescale = 't30')