generate dependently sampled LCI and LCIA arrays for whole databases

bw2preagg is used to generate dependently sampled LCI and LCIA arrays for whole databases.

It uses Brightway2 framework and presamples. The arrays are stored as numpy.ndarray files, and can be integrated in Brightway2 models using other modules (brightway2-aggregatedpresamples).

The resulting result arrays allow the use of aggregated LCI or LCIA results (also known as cradle-to-gate results) in LCA while also correctly integrating the uncertainty of LCI data, see Lesage et al. 2018.

Generating samples of cradle-to-gate results for all activities in a database can be a lengthy process, especially when dealing with large LCI databases like ecoinvent. The functions are therefore geared towards large, bulk calculations, by e.g. facilitating multiprocessing and breaking down the task in multiple “batches” that can run on different systems.

Related projects

Development of a social capital protocol

This position paper puts forward a proposal by the World Business Council for Sustainable Development (WBCSD) for the development of a harmonized approach for businesses to measure and value their interactions with society: A Social Capital Protocol.

Coast to Coast (C2C)

Sustainable maritime and coastal management following an integrated approach combining the assessment of ecosystem services on a territorial scale under a life cycle perspective

Presamples Logo


Write, load, manage and verify presample arrays for LCA.

LCA in Public Policy

A database containing information about 17 OECD jurisdictions using and promoting life cycle approaches in their public policies.


Canadian Analytical Framework for the Environmental Evaluation of Electricity