timba-charts

A toolbox for analysing forest sector model results.

https://github.com/ti-forest-sector-modelling/timba_charts

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.3%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

A toolbox for analysing forest sector model results.

Basic Info
  • Host: GitHub
  • Owner: TI-Forest-Sector-Modelling
  • License: agpl-3.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 790 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 2
  • Releases: 5
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

TiMBA Logo

TiMBA Charts

Build Status codecov PyPI License: AGPL v3 DOI PyPI Downloads

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., Tandetzki, J. and Honkomp, T. (2025) TiMBA Charts v.0.2.0

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.

Install via GitHub

  1. 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 >
  2. Switch to the TiMBA Charts directory
    Navigate into the project folder on your local machine. >cd TiMBA_Charts >
  3. 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 >
  4. Activate the virtual environment
    Enable the virtual environment to isolate TiMBA Charts dependencies. >.venv\Scripts\activate >
  5. 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

Install via Pypi

pip install timba-charts

Start the default 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.:

showdashboard -FP='E:\PTiMBA\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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Start the validation dashbord

After installing the package, the user can start the dashboard board with the following CLI command:

show_validation

Description of the figures

Authors

License and copyright note

Copyright ©, 2025, Thuenen Institute, Christian Morland, Julia Tandetzki, Tomke Honkomp, 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/.

Owner

  • Name: TI-Forest-Sector-Modelling
  • Login: TI-Forest-Sector-Modelling
  • Kind: organization

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: TiMBA Charts
type: software
authors:
  - given-names: Christian
    family-names: Morland
    email: christian.morland@thuenen.de
    affiliation: Thünen Institue of Forestry
    orcid: 'https://orcid.org/0000-0001-6600-570X'
  - given-names: Julia
    family-names: Tandetzki
    email: julia.tandetzki@ec.europa.eu
    affiliation: European Commission - Joint Research Centre
    orcid: 'https://orcid.org/0000-0002-0630-9434'
  - given-names: Tomke
    family-names: Honkomp
    email: tomke.honkomp@thuenen.de
    affiliation: Thünen Institue of Forestry
    orcid: 'https://orcid.org/0000-0002-6719-0190'
identifiers:
  - type: doi
    value: ''
    description: ''
repository-code: ''
abstract: |-
  This package can be used as a toolkit for analysing TiMBA results after simulation.
  The package provides a dashboard which let the user interact with the main TiMBA results. 
  This includes the development of prices, production, consumption, and trade of forest products 
  as well as forest stock development. It also gives information about historic developments as 
  reported by the FAOSTAT. In principle, the 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. 
keywords:
  - research
  - Forest sector model
  - partial equilibrium model
  - optimization
  - wood markets
license: AGPL-3.0-or-later
version: 0.2.0
date-released: '2025-06-18'

GitHub Events

Total
  • Create event: 6
  • Issues event: 8
  • Release event: 4
  • Delete event: 2
  • Push event: 18
  • Pull request event: 7
Last Year
  • Create event: 6
  • Issues event: 8
  • Release event: 4
  • Delete event: 2
  • Push event: 18
  • Pull request event: 7

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 7
  • Total pull requests: 9
  • Average time to close issues: about 1 hour
  • Average time to close pull requests: 4 minutes
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 9
  • Average time to close issues: about 1 hour
  • Average time to close pull requests: 4 minutes
  • Issue authors: 3
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • tomkeH (4)
  • paulrougieux (2)
  • Julia-ta (1)
Pull Request Authors
  • ChristianMorland (5)
  • tomkeH (4)
Top Labels
Issue Labels
enhancement (2) bug (1) documentation (1)
Pull Request Labels
enhancement (3) bug (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 10 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: timba-charts

A toolbox for analysing forest sector model results.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Dependent packages count: 9.0%
Average: 29.9%
Dependent repos count: 50.8%
Maintainers (1)
Last synced: 9 months ago

Dependencies

.github/workflows/actions.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
pyproject.toml pypi
  • Flask ==3.0.3
  • Jinja2 ==3.1.6
  • MarkupSafe ==3.0.2
  • Werkzeug ==3.0.6
  • blinker ==1.9.0
  • certifi ==2025.1.31
  • charset-normalizer ==3.4.1
  • click ==8.1.8
  • colorama ==0.4.6
  • dash ==3.0.0
  • dash-bootstrap-components ==2.0.0
  • idna ==3.10
  • importlib_metadata ==8.6.1
  • itsdangerous ==2.2.0
  • narwhals ==1.31.0
  • nest-asyncio ==1.6.0
  • numpy ==1.26.4
  • packaging ==24.2
  • pandas ==1.5.3
  • plotly ==6.0.1
  • pytest ==8.3.5
  • pytest-cov ==6.1.0
  • python-dateutil ==2.9.0.post0
  • pytz ==2025.1
  • requests ==2.32.3
  • retrying ==1.3.4
  • setuptools ==77.0.3
  • six ==1.17.0
  • stringcase ==1.2.0
  • typing_extensions ==4.12.2
  • urllib3 ==2.3.0
  • zipp ==3.21.0
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pypa/gh-action-pypi-publish release/v1 composite