bw2io.importers.exiobase2
#
Module Contents#
Classes#
Functions#
|
Create activity datasets for each combination of industries and countries. |
|
|
|
Turn rows into a generator of (flow, process, type, amount) tuples. |
|
- class bw2io.importers.exiobase2.Exiobase22Importer(filepath, db_name='EXIOBASE 2.2')[source]#
Bases:
object
- bw2io.importers.exiobase2.extract_exiobase_technosphere(industries, countries, db_name)[source]#
Create activity datasets for each combination of industries and countries.
- bw2io.importers.exiobase2.get_biosphere_lookup_dict(substances, extractions, biosphere=None)[source]#
- bw2io.importers.exiobase2.relabel_emissions(emissions_table, db_name, lookup)[source]#
Turn rows into a generator of (flow, process, type, amount) tuples.
Original data format:
- (
âATâ, âCultivation of wheatâ, âCO2 - combustionâ, âairâ, âkg/M.EURâ, 289687.6972210754
)
emissions_table is the list of raw data lines.
db_name is the string name of the database, âExiobase 2.2â by default.
lookup is a dictionary from string flow names to biosphere keys.
- Returns
- (
(âbiosphere3â, âsome-codeâ), # Looks up âCO2 - combustionâ in lookup (âExiobase 2.2â, âCultivation of wheat:ATâ), 289687.6972210754
)