Skip to content

GreenDelta/data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(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 and the databases on openLCA Nexus. 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

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:

# 1. create an empty database and activate it
# 2. checkout or download the data repository
# 3. let the path below point to the `refdata` folder

refdata_path = '/full/path/top/data/refdata'


from java.util.function import Consumer

class MessageLog(Consumer):

  def __init__(self, fn):
    self.accept = fn

imp = 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:

refdata_path = '/full/path/top/data/refdata'
RefDataExport(File(refdata_path), db).run()

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.