Skip to contents

Conversion

Conversion of well-formated data.table, including batch conversion for database files.

convert_gdx()
Batch convert parameters and variables from a GDX
convert_region()
Convert a data.table from a regional mapping to another.
convert_sqlite()
Batch convert tables from a SQLite database
convert_table()
Convert time periods and regions in a table.
convert_time_period()
Convert a data.table from year to time period.

Default datasets

Default datasets used to process the WITCH model inputs.

default_weights
Default weights.
region_mappings
Default regional mapping
time_mappings
Default timescale mapping
witch_meta_param
WITCH default meta parameter

WITCH

WITCH specific functions.

witch_data()
Handler for witch-data files in WITCH
witch_data_upload()
Upload a file as an asset in a release of a github repository (deprecated).
witch_data_usage()
Wrapper for the usage of a make_data file in WITCH for future use of witch_data
witch_query()
Fast query of WITCH results files
witch_scen_name()
Scenario name from the GDX filename
witch_translate_data()
Translate WITCH data (run make_data files and convert data).
witch_region_mapping()
Read region mapping from a regional WITCH GAMS file.
witch_time_mapping()
Read time mapping from a csv file.
witch_results_files()
List of WITCH results files

Helpers for submission to IIASA database

write_native_regions_yml()
Write the IAMC native regions in yaml as defined in https://github.com/IAMconsortium/common-definitions
write_region_mappings_yml()
Write the IAMC regional mapping to common regions for WITCH yml file as in https://github.com/IAMconsortium/common-definitions

Other functions

china_regions()
China regions for a given region mapping.
india_regions()
India regions for a given region mapping.
eu27_regions()
EU27 regions for a given region mapping.
eu28_regions()
EU28 regions for a given region mapping.
oecd_regions()
OECD regions for a given region mapping.
eu_regions()
EU regions for a given region mapping.
many_pals()
Many color palettes
region_id()
Region ID of a regional mapping.
require_gdxtools()
Install, if necessary, and load the gdxtools library
require_package()
Install, if necessary, and load a R library