mario.Database.calc_linkages
- Database.calc_linkages(scenario='baseline', normalized=True, cut_diag=True, multi_mode=True)
Calculates the linkages in different modes
Note
Only implementable on IOTs.
Normalized is applicable only for single region database.
multi_mode is applicable only for multi region databases.
\[Linkages^{backward, direct}_j = \sum_{i=1}^n z_{ij}\]\[Linkages^{backward, total}_j = \sum_{i=1}^n w_{ij}\]\[Linkages^{forward, direct}_i = \sum_{j=1}^n b_{ij}\]\[Linkages^{forward, total}_i = \sum_{j=1}^n g_{ij}\]- Parameters:
scenario (str) – the scenario that the linkages should be calculated for
normalized (boolean) – normalizes linkages with average.
cut_diag (boolean) – sets the diagonals (self consumptions) to zero.
multi_mode (True) – work in progress
- Return type:
pd.DataFrame