Intensities

This method returns the total impacts related to one unit of product output or waste input of a technosphere flow \(j\) in the supply chain. This includes direct, upstream, and downstream contributions related to one unit of this flow. Mathematically, it is the column \(N[:, j]\) of the impact intensity matrix \(N\):

$$ N = C * B * A^{-1} = C * M $$

RESTGET result/{result-id}/total-impacts-of-one/{tech-flow}
IPCresult/total-impacts-of-one
Python IPCResult.get_total_impacts_of_one
Return typeList[ImpactValue]
Parameter typeTechFlow

It is also possible to get the intensity \(N[k, j]\) of a single impact category \(k\):

RESTGET result/{result-id}/total-impact-of-one/{impact-category}/{tech-flow}
IPCresult/total-impact-of-one
Python IPCResult.get_total_impact_of_one
Return typeImpactValue
Parameter typeRef[ImpactCategory]
Parameter typeTechFlow

Examples

JSON-RPC via Fetch API

The example below shows the usage of this method using the JSON-RPC protocol via the Fetch API which is available in modern web-browsers or platforms like Deno.

  let resp = await fetch("http://localhost:8080", {
    method: "POST",
    body: JSON.stringify({
      jsonrpc: "2.0",
      id: 1,
      method: "result/total-impacts-of-one",
      params: {
        "@id": "86b36d3b-1dba-4804-bd61-dc5bcaf7c86c",
        techFlow: {
          provider: { "@id": "37eb4bf5-9fbc-4caf-a24a-0e0b71b997dd" },
          flow: { "@id": "817c3650-4fed-4ef2-b9b6-404a198834e6" }
        }
      }
    })
  });
  let v = await resp.json();
  console.log(v);
  // {
  //   jsonrpc: "2.0",
  //   result: [
  //     {
  //       impactCategory: {
  //         "@type": "ImpactCategory",
  //         "@id": "3bc1c67f-d3e3-3891-9fea-4512107d88ef",
  //         name: "Climate change",
  //         category: "EF 3.0 Method (adapted)",
  //         refUnit: "kg CO2 eq"
  //       },
  //       amount: 1.3687522905554603
  //     },
  // ...