bw2regional.lca.extension_tables
Module Contents
Classes
Perform regionalized LCA calculation, using biosphere flow- and activity-specific extension tables. |
- class bw2regional.lca.extension_tables.ExtensionTablesLCA(*args, **kwargs)[source]
Bases:
bw2regional.lca.base_class.RegionalizationBasePerform regionalized LCA calculation, using biosphere flow- and activity-specific extension tables.
The calculation formula is:
\[h_{r} = \left[ \textbf{MN}_{dx} \textbf{DXN}_{g} \textbf{GR} \right]^{T} \circ [ \textbf{B} \cdot (\textbf{A}^{-1}f) ]\]Extension tables provide detailed information on the spatial pattern of occurrence for one, some, or all activities, and one, some, or all of their environmental flows. In contrast with background loadings, which are on the spatial scale of impact assessment, extension tables provide data on a new spatial scale which is linked to inventory activities. This third spatial scale (inventory, impact assessment, and extension table) makes the calculation formula more complicated, and makes two normalization steps necessary.
Foo
X is the extension table mapping matrix, a diagonal matrix that indicates the relative importance of each extension table spatial unit. It has dimensions of extension spatial scale by extension spatial scale.
\(N_{x}\) is the extension
L is the extension table
The idea of extension tables is rather flexible, and this class supports limiting activities and flows with the
limitationsobject:limitations = { 'activities': list of activities to include/exclude, 'activities mode': 'exclude', # or 'include', 'flows': list of flows to include/exclude, 'flows mode': 'exclude', # or 'include' }
The
limitationsobject can have activities, flows, or both. Anexcludemode means that these activities or flows are removed from the regionalized matrices; anincludemode means that only the specified activities and flows are kept. The default mode isinclude.- matrix_labels = ['biosphere_mm', 'distribution_mm', 'geo_transform_mm', 'inv_mapping_mm', 'reg_cf_mm',...[source]
- build_distribution_normalization_matrix()[source]
Get normalization matrix for inventory-xtable mapping. Normalizes to
\[( \textbf{N}_{dx} )_{i, i} = \left[ \sum_{j} \textbf{DX}_{i, j} \right]^{-1}\]
- build_geo_transform_normalization_matrix()[source]
Get normalization value for areas in each IA spatial unit:
\[( \textbf{N}_{g} )_{i, i} = \left[ \sum_{j} \textbf{G}_{i, j} \right]^{-1}\]
- create_distribution_matrix()[source]
Get distribution matrix, D, which provides the area of inventory spatial units in each extension table spatial unit. Rows are inventory spatial units and columns are extension table spatial units.
- create_geo_transform_matrix()[source]
Get geographic transform matrix G, which gives the intersecting areas of inventory and impact assessment spatial units. Rows are inventory spatial units, and columns are impact assessment spatial units.
Uses
self.inv_spatial_dictandself.ia_spatial_dict.- Returns:
Parameter array with row/col of inventory and IA locations *
geo_transform_matrix: The matrix G- Return type:
geo_transform_params