The functional and technical specifications of BONSAI are described in the wiki. This repository contains pieces of code to execute some of the functions needed for BONSAI.
The Calculation of LCIA results with Stepwise 1.6 notebook presents the code to calculate the Product Footprints with Stepwise 1.6. The functional specifications of this task are described in the Global Impact Assessment working group.
The Leontief inverse tutorial 1 and tutorial 2 present the code required to perform the matrix inversion. The code for the tutorial 1 is valid for Exiobase v3.3.11b1 where investments are NOT integrated in the core matrix. The code in the tutorial 2 is valid for Exiobase v3.3.11b2 where investments ARE integrated in the core matrix. Also, in version 3.3.11b2, indirect Land Use Change activities, electricity markets and social extensions are included. The Lontiev inverse function is detailed in the Product System algorithms working group.
The least square method tutorial presents a case study using a data filling algorithm, which could be used by the Input Output Framework working group.
These tutorials are currently written to be executed with the Exiobase IO-database as background data. But Exiobase is not open-source and cannot be uploaded from this site. We intend to modify the tutorials so they can be executed with FORWAST.
The pieces of code are presented in Jupyter Notebooks. Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. This code works with Python 3.4, although it requires some additional packages such as Numpy and Pandas.
BONSAMURAIS/bonsai/ is licensed under an MIT License.