A toolbox for analysing forest sector model results.
Project description
TiMBA Charts
This package serves as a toolkit for analysing TiMBA's simulation results. TiMBA is a partial economic equilibrium model for the global forest product market. The package provides a dashboard allowing the user to explore TiMBA’s main results. This includes the development of prices, production, consumption, and trade of forest products as well as forest stock development. It further provides information about historic developments as reported by the FAOSTAT. In principle, this toolkit can be easily adapted and used for the analysis of any forest sector model as long as the data resembles the format of the TiMBA output.
Cite the package
We are happy that you consider to use TiMBA Charts for your research. When publishing your work in articles, working paper, presentations or elsewhere, please cite the package as:
Morland, C. and Tandetzki, J. (2025) TiMBA Charts v.0.1.1
Install TiMBA Charts
The package is developed and tested with Python 3.12.6 on Windows. Please ensure that Python is installed on your system. It can be downloaded and installed from Python.org.
- Clone the repository
Begin by cloning the repository to your local machine using the following command:
git clone https://github.com/TI-Forest-Sector-Modelling/TiMBA_Charts
- Switch to the TiMBA Charts directory
Navigate into the project folder on your local machine.cd TiMBA_Charts
- Create a virtual environment
It is recommended to set up a virtual environment for TiMBA Charts to manage dependencies. If you are using only a single version of Python on your computer:python -m venv .venv
- Activate the virtual environment
Enable the virtual environment to isolate TiMBA Charts dependencies..venv\Scripts\activate
- Install TiMBA Charts in the editable mode
pip install -e .
If the following error occurs: "ERROR: File "setup.py" or "setup.cfg" not found." you might need to update the pip version you use with:
python.exe -m pip install --upgrade pip
Start the dashbord
After installing the package, the user can start the dashboard board with the following CLI command:
show_dashboard
Following CLI command can be used to show all changeable options with the CLI:
show_dashboard --help
At the moment, two options can be changed. The specification of the number of most recent .pkl files to read and the definition of the folder path where the scenario results are stored.
The number of scenarios can be changed as follows:
show_dashboard -NF=4
To change the folder path the user can type, e.g.:
show_dashboard -FP='E:\P_TiMBA\TiMBA\data\output'
Description of the figures
The interactive dashboard provides a flexible interface for exploring model outputs across multiple dimensions. Users can apply filters by region (country or continent), scenario, domain (e.g. Demand, Supply, Trade, Net Trade, and Manufacturing), commodity (ranging from 16 to 20, depending on the input scenario), and commodity group via a control panel.
Please note that certain filter combinations are interdependent and may not return any results. For instance, selecting Roundwood under demand domain will yield no output, as roundwood is a primary good for which only supply is modeled. Likewise, applying both the commodity and commodity group filters simultaneously will not narrow the selection further, as these categories are not hierarchically structured.
Based on the selected inputs, four visualizations are updated dynamically to support intuitive analysis and comparison of model results:
-
The central time series plot displays the development of selected quantities over time. Historical data are represented by solid lines, while scenario-based projections appear as dashed lines. This visualization facilitates an understanding of long-term trends and the dynamics of different scenarios across commodities or commodity groups.
-
The bar chart in the bottom left presents world market prices by year and scenario. It offers a concise overview of price developments across time periods and enables straightforward temporal comparisons.
-
The top-right chart depicts changes in forest stock over time and across scenarios. Each bar represents a specific year or period, illustrating how stock levels evolve under different assumptions.
-
The world map in the bottom right provides a spatial representation of the selected indicator for a given year. Countries are color-coded using a gradient scale (with deeper green indicating higher values). Users can explore different domain–product combinations, such as the product Roundwood and the domain Supply, which reveal which countries exhibit the highest levels of roundwood production. This logic applies to any domain–product selection. A specific year can also be chosen within the map filter to examine spatial patterns in more detail. Please note that this map will always show an aggregate over all scenarios. If the user wanted to show only historical data or a specific scenario this can be chosen by the scenario filter.
For any combination of filters users will have the option to export the filtered dataset as a csv file or the different graphs as png files for further analysis or documentation.
Authors
License and copyright note
Copyright ©, 2025, Thuenen Institute, Christian Morland, Julia Tandetzki, wf-timba@thuenen.de
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timba_charts-0.1.1.tar.gz.
File metadata
- Download URL: timba_charts-0.1.1.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c6fae107f7a88bb6a1d4fc307d347a34b356afb046b978c476d7cfee582e00
|
|
| MD5 |
2b050160e88f67853fdffea36cab2a36
|
|
| BLAKE2b-256 |
62748c826412ead6434ed545f89c78d848704415a33b7dc38b366baa5c335f69
|
Provenance
The following attestation bundles were made for timba_charts-0.1.1.tar.gz:
Publisher:
publish.yml on TI-Forest-Sector-Modelling/TiMBA_Charts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timba_charts-0.1.1.tar.gz -
Subject digest:
20c6fae107f7a88bb6a1d4fc307d347a34b356afb046b978c476d7cfee582e00 - Sigstore transparency entry: 234031900
- Sigstore integration time:
-
Permalink:
TI-Forest-Sector-Modelling/TiMBA_Charts@53dc180ba23ee81324fb29973b33849317f4fd9a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/TI-Forest-Sector-Modelling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53dc180ba23ee81324fb29973b33849317f4fd9a -
Trigger Event:
push
-
Statement type:
File details
Details for the file timba_charts-0.1.1-py3-none-any.whl.
File metadata
- Download URL: timba_charts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aea009835190079983c8ded01e7199f81de953873e3eae27b8fc41ca6f9ac354
|
|
| MD5 |
805e76ab0d016fa7259d4dafed84e74b
|
|
| BLAKE2b-256 |
e5d7529cee877f633cb7e84e901d3f4612f8df10654ba6d427dbd0b6b4e17108
|
Provenance
The following attestation bundles were made for timba_charts-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on TI-Forest-Sector-Modelling/TiMBA_Charts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timba_charts-0.1.1-py3-none-any.whl -
Subject digest:
aea009835190079983c8ded01e7199f81de953873e3eae27b8fc41ca6f9ac354 - Sigstore transparency entry: 234031904
- Sigstore integration time:
-
Permalink:
TI-Forest-Sector-Modelling/TiMBA_Charts@53dc180ba23ee81324fb29973b33849317f4fd9a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/TI-Forest-Sector-Modelling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53dc180ba23ee81324fb29973b33849317f4fd9a -
Trigger Event:
push
-
Statement type: