bw2io.importers.exiobase2#
Classes#
Functions#
|
Create activity datasets for each combination of industries and countries. |
|
|
|
Turn rows into a generator of (flow, process, type, amount) tuples. |
|
Module Contents#
- 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
)