-
Notifications
You must be signed in to change notification settings - Fork 0
GET_process_or_coefficient
Benjamin Bertin edited this page Feb 9, 2015
·
1 revision
This methods return a single process (using process/sp/single_process_id
) or a single coefficient (using coefficient/sc/coefficient_id
).
The following JSON code snippet shows a single process object indexed with two keywords. The important attributes are the relations
, the impats
and the flows
. For every impact and flow the contributing upstream relations are exposed, and for every impact the contributing flows are exposed:
{
"_id": "sp/single_process",
"id": "sp/single_process",
"unit": {
"id": "u/km",
"symbol": "km",
"ref": "km",
"conversionFactor": 1.0
},
"keywords": [
{
"id": "k/keyword_1",
"label": "Keyword 1 name"
},
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"groups": [
{
"id": "gp/process_group_1",
"label": "Process group 1 name"
}
],
"relations": [
{
"exponent": 1,
"sourceId": "sp/upstream_single_process",
"sourceUnit": {
"id": "u/km_year",
"symbol": "km.yr",
"ref": "km.an",
"conversionFactor": 3.155692596E7
},
"sourceKeywords": [
{
"id": "k/upstream_single_process",
"label": "Upstream single process"
}
],
"coeffId": "sc/single_coefficient_1",
"coeffUnit": {
"id": "u/day",
"symbol": "day",
"ref": "jour",
"conversionFactor": 86400.0
},
"coeffKeywords": [
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"destinationId": "sp/single_process",
"destinationUnit": {
"id": "u/km",
"symbol": "km",
"ref": "km",
"conversionFactor": 1.0
},
"destinationKeywords": [
{
"id": "k/keyword_1",
"label": "Keyword 1 name"
},
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"sourceRelation": {
"id": "r/relation_1",
"exponent": 1,
"type": {
"id": "rt/synchronous_dependency",
"label": "Synchronous dependency",
"comment": "Upstream and downstream process occur simultaneously. Upstream process can be viewed as a part of downstream process. ",
"type": "SYNCHRONOUS"
},
"source": {
"id": "gp/upstream_process_group",
"label": "Upstream process group name"
},
"coeff": {
"id": "gc/coefficient_group_1",
"label": "Coefficient group 1 name"
},
"destination": {
"id": "gp/process_group_1",
"label": "Process group 1 name"
}
}
}
],
"impacts": {
"it/ghg_emission_measured_using_gwp_over_500_years": {
"value": {
"value": 2060.1367082915176,
"uncertainty": 0.0
},
"upstream": [
{
"coeffKeywords": [
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"processKeywords": [
{
"id": "k/upstream_single_process",
"label": "Upstream single process"
}
],
"exponent": 1,
"processId": "sp/upstream_single_process",
"processUnit": {
"id": "u/km_year",
"symbol": "km.yr",
"ref": "km.an",
"conversionFactor": 3.155692596E7
},
"coeffId": "sc/single_coefficient_1",
"coeffUnit": {
"id": "u/day",
"symbol": "day",
"ref": "jour",
"conversionFactor": 86400.0
},
"contribution": 6.12,
"value": 126.13081887499082
}
],
"composition": [
{
"category": "Greenhouse gas emission",
"contribution": 0.91,
"value": 18.809984522562335,
"type": "Methane (CH4)"
},
{
"category": "Greenhouse gas emission",
"contribution": 28.53,
"value": 587.694957497972,
"type": "Nitrous oxide (N2O)"
},
{
"category": "Greenhouse gas emission",
"contribution": 70.56,
"value": 1453.631766270983,
"type": "Carbon dioxide (CO2)"
}
]
}
},
"flows": {
"eft/ghg/ch4": {
"value": {
"value": 2.4749979634950443,
"uncertainty": 0.0
},
"upstream": [
{
"coeffKeywords": [
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"processKeywords": [
{
"id": "k/upstream_single_process",
"label": "Upstream single process"
}
],
"exponent": 1,
"processId": "sp/upstream_single_process",
"processUnit": {
"id": "u/km_year",
"symbol": "km.yr",
"ref": "km.an",
"conversionFactor": 3.155692596E7
},
"coeffId": "sc/single_coefficient_1",
"coeffUnit": {
"id": "u/day",
"symbol": "day",
"ref": "jour",
"conversionFactor": 86400.0
},
"contribution": 6.12,
"value": 0.15153048756092105
}
]
},
"eft/ghg/n2o": {
"value": {
"value": 3.8411435130586407,
"uncertainty": 0.0
},
"upstream": [
{
"coeffKeywords": [
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"processKeywords": [
{
"id": "k/upstream_single_process",
"label": "Upstream single process"
}
],
"exponent": 1,
"processId": "sp/upstream_single_process",
"processUnit": {
"id": "u/km_year",
"symbol": "km.yr",
"ref": "km.an",
"conversionFactor": 3.155692596E7
},
"coeffId": "sc/single_coefficient_1",
"coeffUnit": {
"id": "u/day",
"symbol": "day",
"ref": "jour",
"conversionFactor": 86400.0
},
"contribution": 6.12,
"value": 0.23517205181991677
}
]
},
"eft/ghg/co2": {
"value": {
"value": 1453.631766270983,
"uncertainty": 0.0
},
"upstream": [
{
"coeffKeywords": [
{
"id": "k/keyword_2",
"label": "Keyword 2 name"
}
],
"processKeywords": [
{
"id": "k/upstream_single_process",
"label": "Upstream single process"
}
],
"exponent": 1,
"processId": "sp/upstream_single_process",
"processUnit": {
"id": "u/km_year",
"symbol": "km.yr",
"ref": "km.an",
"conversionFactor": 3.155692596E7
},
"coeffId": "sc/single_coefficient_1",
"coeffUnit": {
"id": "u/day",
"symbol": "day",
"ref": "jour",
"conversionFactor": 86400.0
},
"contribution": 6.12,
"value": 88.99786324108055
}
]
}
}
}