Skip to content

Latest commit

 

History

History

displacement

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Displacement

This plugin calculates the number of people that have to leave their home after emitting this amount of carbon

Parameters

Global Config

units: the amount of functional units you want to look at. Maybe the amount of requests your api get per month or year (Optional, Default: 1)

Node Config

units: the amount of functional units you want to look at. Maybe the amount of requests your api get per month or year (Optional, Default: 1)

Input

carbon: either the total carbon or the carbon per functional unit, in gCO2eq

Returns

displaced-people: The number of people that have to leave their home from emitting the amount of carbon

Calculation

displaced-people = ((carbon * units) / 1000000) * 0.0004 

More details about the calculation can be found in the wiki

Example manifest

name: displacement-demo
description: example invoking displacement plugin
tags:
initialize:
  plugins:
    displacement:
      path: 'https://github.com/hoernschen/grasp'
      method: Displacement
      config:
        units: 1000
tree:
  children:
    child:
      pipeline:
        - displacement
      inputs:
        - timestamp: 2023-07-06T00:00
          carbon: 5
          duration: 1