Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brightway-lca/simapro_ecoinvent_elementary_flows
Utilities and correspondence lists for working with SimaPro
https://github.com/brightway-lca/simapro_ecoinvent_elementary_flows
Last synced: about 2 months ago
JSON representation
Utilities and correspondence lists for working with SimaPro
- Host: GitHub
- URL: https://github.com/brightway-lca/simapro_ecoinvent_elementary_flows
- Owner: brightway-lca
- Created: 2022-08-26T10:33:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T16:06:56.000Z (2 months ago)
- Last Synced: 2024-10-25T22:22:41.634Z (2 months ago)
- Language: Jupyter Notebook
- Size: 4.97 MB
- Stars: 8
- Watchers: 8
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Authors: Authors.md
Awesome Lists containing this project
README
# simapro_ecoinvent_elementary_flows
This repository is a openly-developed and openly-available mapping of the elementary flow lists of ecoinvent 3.7 and SimaPro 9.4.
## Table of Contents
- [Background](#background)
- [Status](#status)
- [Methodology](#methodology)
- [Contributing](#contributing)
- [Authors](#authors)
- [Maintainers](#maintainers)
- [License](#license)## Background
Translating across nomenclature lists is an eternal problem in many problem domains, including life cycle assessment. There have been many ad hoc mapping files and file formats over the years, but recently a large working group produced the [GLAD Elementary Flow Resources](https://github.com/UNEP-Economy-Division/GLAD-ElementaryFlowResources) repository; we will use its data formats for both input files and flow mappings:
* [Input flow lists](https://github.com/UNEP-Economy-Division/GLAD-ElementaryFlowResources/blob/master/Formats/FlowList.md)
* [Output flow mapping](https://github.com/UNEP-Economy-Division/GLAD-ElementaryFlowResources/blob/master/Formats/FlowMapping.md)Our objective is to improve on the UNEP workflow by making the process of creating the mappings transparent and open to any one who wants to contribute. In addition to other benefits, this should also make future updates easier.
## Status
Current status is reported in [status.md](status.md)
## Methodology
### Simapro `Context` values
To the best of our understanding, the elementary flow list provided by PRé uses a different model for the `Context` value than what is used in ecoinvent. For one thing, they have one UUID for flows, regardless of the subcategory `Context` values. Indeed, the master data list includes only the base `Category` values, namely:
* 'Airborne emissions'
* 'Economic issues'
* 'Emissions to soil'
* 'Final waste flows'
* 'Non material emissions'
* 'Raw materials'
* 'Social issues'
* 'Waterborne emissions'They also use slightly different names for these base `Context` values, e.g. for `Airborne emissions`:
* In the master flow list: Airborne emissions
* In an LCI file: Emissions to air
* In an LCIA file: AirWe use the LCI file version, as this is the most common use case for data conversion. These are (again, to the best of our knowledge):
* Emissions to air
* Economic issues
* Emissions to soil
* Final waste flows
* Non material emissions
* Resources
* Social issues
* Emissions to water### `Context` mapping
Here is our current mapping for different base `Context` values
#### Resources
| ecoinvent context | Simapro context | Match condition (Simapro to ecoinvent) |
| ----------------- | --------------- | -------------------------------------- |
| natural resource/land | Resources/land | = |
| natural resource/unspecified | Resources/(unspecified) | = |
| natural resource/biotic | Resources/biotic | = |
| natural resource/in ground | Resources/in ground | = |
| natural resource/in air | Resources/in air | = |
| natural resource/in water | Resources/in water | = |
| natural resource/in water | Resources/fossil well | ~ |#### Water
| ecoinvent context | Simapro context | Match condition (Simapro to ecoinvent) |
| ----------------- | --------------- | -------------------------------------- |
| water/fossil well | Emissions to water/fossilwater | ~ |
| water/ground- | Emissions to water/groundwater | = |
| water/ground-, long-term | Emissions to water/groundwater, long-term | = |
| water/ocean | Emissions to water/ocean | = |
| water/surface water | Emissions to water/lake | < |
| water/surface water | Emissions to water/river | < |
| water/surface water | Emissions to water/river, long-term | < |
| water/unspecified | Emissions to water/(unspecified) | = |#### Air
| ecoinvent context | Simapro context | Match condition (Simapro to ecoinvent) |
| ----------------- | --------------- | -------------------------------------- |
| air/indoor | Emissions to air/indoor | = |
| air/low population density, long-term | Emissions to air/low. pop., long-term | = |
| air/lower stratosphere + upper troposphere | Emissions to air/stratosphere | ~ |
| air/lower stratosphere + upper troposphere | Emissions to air/stratosphere + troposphere | ~ |
| air/non-urban air or from high stacks | Emissions to air/low. pop. | = |
| air/unspecified | Emissions to air/(unspecified) | = |
| air/urban air close to ground | Emissions to air/high. pop. | = |#### Soil
| ecoinvent context | Simapro context | Match condition (Simapro to ecoinvent) |
| ----------------- | --------------- | -------------------------------------- |
| soil/agricultural | Emissions to soil/agricultural | = |
| soil/forestry | Emissions to soil/forestry | = |
| soil/industrial | Emissions to soil/industrial | = |
| soil/industrial | Emissions to soil/urban, non industrial | ~ |
| soil/unspecified | Emissions to soil/(unspecified) | = |## Contributing
Your contributions are welcome! This effort, and indeed consistent, high-quality LCA results, are only possible when we work together.
You will need a Github account.
We follow the [Github Flow, a workflow based around pull requests](https://docs.github.com/en/get-started/quickstart/github-flow), and use Github actions to do quality assurance. The Github flow documentation covers the basics; to make a contribution here you will need to:
So, if you want to contribute you need to:* Write some code to create CSVs following the [Output flow mapping](https://github.com/UNEP-Economy-Division/GLAD-ElementaryFlowResources/blob/master/Formats/FlowMapping.md) format. You can also do mappings manually, though we would prefer you to automate this as much as possible, so that we can easily change or regenerate the mappings if needed. The repo includes a [template for doing matching](https://github.com/brightway-lca/simapro_ecoinvent_elementary_flows/blob/main/Notebooks/Template%20matching%20notebook.ipynb), and the folder `Notebooks` includes matching notebooks that have been incorporated into the current data.
* However you generate it, you must create a CSV with new mappings **in the `Contribute` directory**.
* Create a pull request, using the `new_mapping` template. Make sure you have done the tasks given in the template; you can always update your pull request with new commits!
A contributor forks this repository and adds their mapping contribution as a new CSV file in the `Contribute` directory. Ideally these contributions will be generated programmatically, either via a Jupyter Notebook (added to `Notebooks`) or a script (added to `Scripts`).
* They create a pull request, which triggers Github Actions which check the validity of their mapping file, and checks whether the new mappings contradict existing mappings. If there are errors, an error log is created and attached to the pull request.
* If the pull request is accepted, a separate set of Github Actions are run which merge the new mappings into `Mapping/Output/Mapped_files`, and updates the `README.md` file and status reports.## Authors
* [Chris Mutel](https://github.com/cmutel/)
* [Aleksandra Kim](https://github.com/aleksandra-kim)
* [Huo Jing](https://github.com/jhuo2021)## Maintainers
* [Chris Mutel](https://github.com/cmutel/)
* [Tomás Navarrete](https://github.com/tngtudor)## License
* Code: [BSD-3-Clause](https://github.com/brightway-lca/bw_processing/blob/master/LICENSE)
* Data: [Open Data Commons Public Domain Dedication and License v1.0](http://opendatacommons.org/licenses/pddl/)