Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greendelta/data
Repository for LCIA methods in openLCA.
https://github.com/greendelta/data
Last synced: 25 days ago
JSON representation
Repository for LCIA methods in openLCA.
- Host: GitHub
- URL: https://github.com/greendelta/data
- Owner: GreenDelta
- License: cc-by-sa-4.0
- Created: 2020-07-21T13:50:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T07:19:48.000Z (about 1 month ago)
- Last Synced: 2024-12-03T08:24:21.983Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 124 MB
- Stars: 2
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# (ref)data
__Note__ that the data files in this repository are only compatible with openLCA
2. See the version tags for older versions of these files.This repository contains reference data (units, flow properties, flows etc.) and
Life Cycle Impact Assessment (LCIA) methods for
[openLCA](https://www.openlca.org/) and the databases on [openLCA
Nexus](https://nexus.openlca.org). The database templates in openLCA are
directly created from the main branch of this repository. Contributions like bug
reports or pull requests are very welcome.## Content
* [docs](./docs): contains the documentation of the CSV format for
[reference data](./docs/format_csv_ref_data.md) and
[mapping files](./docs/format_csv_flow_mapping.md)
* [refdata](./refdata/): contains files with reference data, LCIA methods, and
mapping files
* [scripts](./scripts/): contains utilities for packaging and validation## Usage
We may provide prepared packages as releases. The current LCIA method package
is available on openLCA Nexus. The data in the `refdata` folder can be
directly imported into openLCA via the integrated Python editor:```py
# 1. create an empty database and activate it
# 2. checkout or download the data repository
# 3. let the path below point to the `refdata` folderrefdata_path = '/full/path/top/data/refdata'
from java.util.function import Consumer
class MessageLog(Consumer):
def __init__(self, fn):
self.accept = fnimp = RefDataImport(File(refdata_path), db)
imp.log().listen(MessageLog(lambda m: m.log())) # log import messages
imp.run() # this can take a bit```
You can also export the reference data of a database via the integrated
Python editor in openLCA:```py
refdata_path = '/full/path/top/data/refdata'
RefDataExport(File(refdata_path), db).run()
```----
This work
is licensed under a Creative Commons
Attribution-ShareAlike 4.0 International License.