bw2io.data#
Submodules#
Attributes#
Functions#
|
|
|
|
|
|
Write a migrations data file from ecoinvent 2 to 3.1. |
|
Write a correspondence list from SimaPro elementary flow names to ecoinvent 3 flow names to a JSON file. |
|
Get data for 2 -> 3 migration for biosphere flow categories |
|
Get migration data for 2 -> 3 biosphere flow names. |
|
Migrate to ecoinvent3 flow names |
|
|
|
Write a migrations data file from SimaPro activity names to ecoinvent 3 processes. |
|
Fix US LCI database name inconsistencies |
|
Get list of short location names used in ecoinvent 3 |
|
|
Update ecoinvent location names for an existing database. |
|
Package Contents#
- bw2io.data.convert_ecoinvent_2_301()[source]#
Write a migrations data file from ecoinvent 2 to 3.1.
- This is not simple, unfortunately. We have to deal with at least the following:
Unit changes (e.g. cubic meters to MJ)
Some datasets are deleted, and replaced by others
- bw2io.data.convert_simapro_ecoinvent_elementary_flows()[source]#
Write a correspondence list from SimaPro elementary flow names to ecoinvent 3 flow names to a JSON file.
Uses custom SimaPro specific data. Ecoinvent 2 -> 3 conversion is in a separate JSON file.
- bw2io.data.get_biosphere_2_3_category_migration_data()[source]#
Get data for 2 -> 3 migration for biosphere flow categories
- bw2io.data.get_biosphere_2_3_name_migration_data()[source]#
Get migration data for 2 -> 3 biosphere flow names.
This migration must be applied only after categories have been updated.
Note that the input data excel sheet is modified from the raw data provided by ecoinvent - some biosphere flows which had no equivalent in ecospold2 were mapped using my best judgment. Name changes from 3.1 were also included. Modified cells are marked in dark orange.
Note that not all rows have names in ecoinvent 3. There are a few energy resources that we don’t update. For water flows, the categories are updated by a different strategy, and the names don’t change, so we just ignore them for now.
- bw2io.data.get_simapro_ecoinvent_3_migration_data(version)[source]#
Write a migrations data file from SimaPro activity names to ecoinvent 3 processes.
Correspondence file is processed from Pré, and has the following fields:
SimaPro name
Ecoinvent flow name
Location
Ecoinvent activity name
System model
SimaPro type
Note that even the official matching data from Pré is incorrect, but works if we cast all strings to lower case.
SimaPro type is either
System terminated
orUnit process
. We always match to unit processes regardless of SimaPro type.