bw2io.importers.exiobase2#

Module Contents#

Classes#

Exiobase22Importer

Functions#

extract_exiobase_technosphere(industries, countries, ...)

Create activity datasets for each combination of industries and countries.

get_biosphere_lookup_dict(substances, extractions[, ...])

relabel_emissions(emissions_table, db_name, lookup)

Turn rows into a generator of (flow, process, type, amount) tuples.

relabel_exchanges(table, db_name)

class bw2io.importers.exiobase2.Exiobase22Importer(filepath, db_name='EXIOBASE 2.2')[source]#

Bases: object

format = 'Exiobase 2.2'[source]#
apply_strategies(biosphere=None)[source]#
write_database()[source]#
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

)

bw2io.importers.exiobase2.relabel_exchanges(table, db_name)[source]#