Result elements
These methods return the elements of a result for which result values can be retrieved: the technosphere flows, the intervention flows, and the impact categories. The elements returned by these methods can be directly used as parameters in other result methods (see method names and parameters).
| Method | Returns |
|---|---|
tech-flows | List[TechFlow] |
envi-flows | List[EnviFlow] |
impact-categories | List[Ref[ImpactCategory]] |
Technosphere flows
The method tech-flows returns the \(n\) technosphere flows of a result.
These are the flows by which the processes of the calculated system are linked.
Each technosphere flow is a pair of a product or waste flow and a provider where
the provider is typically a process but can also be a product system (a
sub-system) or even another result. The technology matrix \(A\) is
symmetrically indexed by these technosphere flows:
$$ A \in \mathbb{R}^{n \times n} $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/tech-flows", {
"@id": "77ccaffa-9d79-4f38-8da5-4413469b8a7b",
});
console.log(v);
// [
// {
// provider: {
// "@type": "Process",
// "@id": "7c619276-7b15-472a-b261-0110d461755a",
// name: "market for natural gas, high pressure",
// processType: "LCI_RESULT",
// flowType: "PRODUCT_FLOW"
// },
// flow: {
// "@type": "Flow",
// "@id": "a9007f10-7e39-4d50-8f4a-d6d03ce3d673",
// name: "natural gas, high pressure",
Python IPC
tech_flows = result.get_tech_flows()
print(
pd.DataFrame(
[
(tf.provider.name, tf.flow.name, tf.flow.ref_unit)
for tf in tech_flows
],
columns=["Provider", "Flow", "Unit"],
).head()
)
# Provider Flow Unit
# 0 Fresh wheat, corn, rice, and oth... Fresh wheat, corn, ric... USD
# 1 Synthetic dyes and pigments... Synthetic dyes an... USD
# 2 Cardboard containers... Cardboard ... USD
# 3 Synthetic rubber and artificial ... Synthetic rubber and a... USD
# 4 Packaged poultry... Packag... USD
Intervention flows
The method envi-flows returns the \(m\) intervention flows of a result.
These are the flows that cross the boundary with the environment of the
calculated system (this is why the short name is EnviFlow in the API). In
regionalized calculations these flows can be pairs of flows and locations, the
same flow can occur in different locations (with possibly different
characterisation factors). The rows of the intervention matrix are indexed by
these \(m\) intervention flows (and the columns by the \(n\) technosphere
flows):
$$ B \in \mathbb{R}^{m \times n} $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/envi-flows", {
"@id": "66dcc7d0-ce47-46bf-b77a-ada4b4c95169",
});
console.log(v);
// [
// {
// flow: {
// "@type": "Flow",
// "@id": "60ea7a31-8f27-46af-bfe5-66417f00088b",
// name: "Barite",
// category: "Elementary flows/Emission to water/ocean",
// flowType: "ELEMENTARY_FLOW",
// refUnit: "kg"
// },
// isInput: false
// },
// {
// flow: {
// "@type": "Flow",
Python IPC
envi_flows = result.get_envi_flows()
print(
pd.DataFrame(
[
(ef.is_input, ef.flow.name, ef.flow.category, ef.flow.ref_unit)
for ef in envi_flows
],
columns=["Is input?", "Flow", "Category", "Unit"],
).head()
)
# Is input? Flow Category Unit
# 0 False 1,4-dioxane Elementary Flows/air/unspecified kg
# 1 False oryzalin Elementary Flows/soil/groundwater kg
# 2 False Sethoxydim Elementary Flows/soil/groundwater kg
# 3 False Chlorpyrifos Elementary Flows/air/low population density kg
# 4 False lead Elementary Flows/air/unspecified kg
Impact categories
The method impact-categories returns the \(l\) impact categories of a
result. The rows of the characterisation matrix \(C\) are indexed by these
impact categories and the columns by the \(m\) intervention flows of the
system. \(C\) contains the respective characterisation factors of the
intervention flows.
$$ C \in \mathbb{R}^{l \times m} $$
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
const v = await call("result/impact-categories", {
"@id": "4780f66c-0b77-49ca-9226-c7ce4447ea2d",
});
console.log(v);
// [
// {
// "@type": "ImpactCategory",
// "@id": "2dddb0a4-2f97-3fef-a4e6-708f0b4c2554",
// name: "Human toxicity, cancer - inorganics",
// category: "EF 3.0 Method (adapted)",
// refUnit: "CTUh"
// },
// {
// "@type": "ImpactCategory",
// "@id": "248a3f3f-933e-3c45-a799-fad9f956e03c",
// name: "Photochemical ozone formation",
// category: "EF 3.0 Method (adapted)",
// refUnit: "kg NMVOC eq"
// },
Python IPC
impact_categories = result.get_impact_categories()
print(
pd.DataFrame(
[(i.name, i.ref_unit) for i in impact_categories],
columns=["Impact category", "Unit"],
)
)
# Impact category Unit
# 0 OZON kg CFC11-eq
# 1 EUTR kg N eq
# 2 SMOG kg O3 eq
# 3 HNC CTUh
# 4 ETOX CTUe
# 5 HC CTUh
# 6 HRSP kg PM2.5 eq
# 7 GCC kg CO2 eq
# 8 HTOX CTUh
# 9 ACID kg SO2-eq