{"id":15581516,"url":"https://github.com/swillner/libmrio","last_synced_at":"2025-10-24T11:54:57.625Z","repository":{"id":25027274,"uuid":"28446720","full_name":"swillner/libmrio","owner":"swillner","description":"C++-Implementation of a flexible algorithm for regional and sectoral disaggregation of multi-regional input-output (MRIO) tables.","archived":false,"fork":false,"pushed_at":"2021-08-11T08:20:24.000Z","size":246,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T13:37:40.421Z","etag":null,"topics":["disaggregation","mrio","multi-regional-input-output","trade-data"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swillner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-24T11:20:46.000Z","updated_at":"2024-01-31T10:21:31.000Z","dependencies_parsed_at":"2022-08-23T11:31:05.145Z","dependency_job_id":null,"html_url":"https://github.com/swillner/libmrio","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swillner%2Flibmrio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swillner%2Flibmrio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swillner%2Flibmrio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swillner%2Flibmrio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swillner","download_url":"https://codeload.github.com/swillner/libmrio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794605,"owners_count":21162615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disaggregation","mrio","multi-regional-input-output","trade-data"],"created_at":"2024-10-02T19:49:16.613Z","updated_at":"2025-10-24T11:54:52.578Z","avatar_url":"https://github.com/swillner.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.832052-blue.svg)](http://dx.doi.org/10.5281/zenodo.832052)\n\n\n# Regional and sectoral disaggregation of multi-regional input-output tables\n\nC++-Implementation of the flexible algorithm for regional and sectoral disaggregation of multi-regional input-output tables as described in:\n\nL. Wenz, S.N. Willner, A. Radebach, R. Bierkandt, J.C. Steckel, A. Levermann  \n**[Regional and sectoral disaggregation of multi-regional input-output tables: a flexible algorithm](http://www.pik-potsdam.de/~anders/publications/wenz_willner15.pdf)**  \n*Economic Systems Research* 27 (2015), [DOI: 10.1080/09535314.2014.987731](http://dx.doi.org/10.1080/09535314.2014.987731).\n\nIt includes a library for handling heterogeneous MRIO tables with up to one level of hierarchy. If you want to use it and have trouble with it just drop me an [email](mailto:sven.willner@pik-potsdam.de).\n\n## Compiling\n\nJust use cmake:\n```\nmkdir build\ncd build\ncmake ..\n```\nto create the `mrio_disaggregate` binary. Compiler has to support C++11.\n\nTo use `libmrio` as a static library you can include `libmrio.cmake` from `cmake`.\n\n## Dependencies\n\nLibmrio depends on my [https://github.com/swillner/cpp-library](CSV parser) and [https://github.com/swillner/settingsnode](Settings wrapper). These are included as subtrees.\n\nIt also uses [https://github.com/jbeder/yaml-cpp.git](yaml-cpp), which you either need to have installed or get as a submodule:\n```\ngit submodule update --init --recursive\n```\n\nThe implementation optionally uses the [https://github.com/Unidata/netcdf-cxx4](NetCDF-CXX4-library) (e.g. package `libnetcdf-c++4-dev` in Ubuntu/Debian). Its use is controlled via the cmake option `LIBMRIO_WITH_NETCDF` (e.g. use `ccmake ..`).\n\n## Usage\n\n`mrio_disaggregate` expects the path of a YAML control file as parameter (or `-` and the file is read from stdin):\n\n- YAML control file\nsee example in `examples/simple`.\n\n- Proxy files\nCSV-files with proxy data. Column numbers depend on proxy level (as documented in the paper). First column: Year; Then columns of either region/sector name or column pairs of region/sector name and index (starting with 0) of subregion/subsector; Then value; Concluding with an optional column given the sum (only applies for GDP and population levels).\n\n- Formats\nSupported input and output formats are `csv`, `mrio` and `netcdf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswillner%2Flibmrio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswillner%2Flibmrio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswillner%2Flibmrio/lists"}