-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from oemof/feature/ghg_facades
Add facades CommodityGHG and ConversionGHG
- Loading branch information
Showing
22 changed files
with
959 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ Authors | |
* Julian Endres | ||
* Felix Maurer | ||
* Pierre-Francois Duc | ||
* Sabine Haas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Green house gases (GHG) example for oemof-tabular | ||
|
||
Run `scripts/infer.py` from the datapackage root directory to add the | ||
meta data file `datapackage.json` after updating the resources of the | ||
datapackage. |
6 changes: 6 additions & 0 deletions
6
src/oemof/tabular/examples/datapackages/GHG/data/elements/bus.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name;type;balanced | ||
co2;bus;false | ||
ch4;bus;false | ||
n2o;bus;false | ||
el_bus;bus;true | ||
gas_bus;bus;true |
3 changes: 3 additions & 0 deletions
3
src/oemof/tabular/examples/datapackages/GHG/data/elements/commodityGHG_import.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name;type;carrier;amount;bus;emission_bus_0;marginal_cost;output_parameters;emission_factor_co2 | ||
green_gas_import;commodity_ghg;gas;300;gas_bus;co2;20;{"max": [1, 1, 1]};-56 | ||
fossile_gas_import;commodity_ghg;gas;200;gas_bus;co2;10;{"max": [1, 0, 0]};56 |
2 changes: 2 additions & 0 deletions
2
src/oemof/tabular/examples/datapackages/GHG/data/elements/conversionGHG.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name;type;carrier;tech;capacity;from_bus;to_bus;emission_bus_0;emission_bus_1;emission_bus_2;marginal_cost;efficiency;emission_factor_co2;emission_factor_ch4;emission_factor_n2o | ||
gtGHG;conversion_ghg;electricity;gt;300;gas_bus;el_bus;co2;ch4;n2o;10;0.5;56;0.4;0.017 |
2 changes: 2 additions & 0 deletions
2
src/oemof/tabular/examples/datapackages/GHG/data/elements/excess.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name;type;bus;capacity | ||
gas_excess;excess;gas_bus;1000000000 |
2 changes: 2 additions & 0 deletions
2
src/oemof/tabular/examples/datapackages/GHG/data/elements/load.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name;amount;profile;type;bus | ||
demand0;100;electricity-load-profile;load;el_bus |
2 changes: 2 additions & 0 deletions
2
src/oemof/tabular/examples/datapackages/GHG/data/elements/shortage.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name;type;carrier;tech;bus;capacity;marginal_cost | ||
el_shortage;shortage;electricity;shortage;el_bus;100000000;100000 |
4 changes: 4 additions & 0 deletions
4
src/oemof/tabular/examples/datapackages/GHG/data/sequences/load_profile.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
timeindex,electricity-load-profile | ||
2011-01-01T00:00:00Z,1 | ||
2011-01-01T01:00:00Z,0.5 | ||
2011-01-01T02:00:00Z,0.1 |
325 changes: 325 additions & 0 deletions
325
src/oemof/tabular/examples/datapackages/GHG/datapackage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,325 @@ | ||
{ | ||
"profile": "tabular-data-package", | ||
"name": "GHG-test", | ||
"oemof_tabular_version": "0.0.6dev", | ||
"resources": [ | ||
{ | ||
"path": "data/elements/bus.csv", | ||
"profile": "tabular-data-resource", | ||
"name": "bus", | ||
"format": "csv", | ||
"mediatype": "text/csv", | ||
"encoding": "utf-8", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "type", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "balanced", | ||
"type": "boolean", | ||
"format": "default" | ||
} | ||
], | ||
"missingValues": [ | ||
"" | ||
], | ||
"primaryKey": "name", | ||
"foreignKeys": [] | ||
} | ||
}, | ||
{ | ||
"path": "data/elements/conversionGHG.csv", | ||
"profile": "tabular-data-resource", | ||
"name": "conversionGHG", | ||
"format": "csv", | ||
"mediatype": "text/csv", | ||
"encoding": "utf-8", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "type", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "carrier", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "tech", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "capacity", | ||
"type": "integer", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "from_bus", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "to_bus", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_bus_0", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_bus_1", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_bus_2", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "marginal_cost", | ||
"type": "integer", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "efficiency", | ||
"type": "number", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_factor_co2", | ||
"type": "number", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_factor_ch4", | ||
"type": "number", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_factor_n2o", | ||
"type": "number", | ||
"format": "default" | ||
} | ||
], | ||
"foreignKeys": [ | ||
{ | ||
"fields": "from_bus", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "to_bus", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "emission_bus_0", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "emission_bus_1", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "emission_bus_2", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
} | ||
], | ||
"missingValues": [ | ||
"" | ||
], | ||
"primaryKey": "name" | ||
} | ||
}, | ||
{ | ||
"path": "data/elements/commodityGHG_import.csv", | ||
"profile": "tabular-data-resource", | ||
"name": "commodityGHG_import", | ||
"format": "csv", | ||
"mediatype": "text/csv", | ||
"encoding": "utf-8", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "type", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "carrier", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "integer", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "bus", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_bus_0", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "marginal_cost", | ||
"type": "integer", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "output_parameters", | ||
"type": "object", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "emission_factor_co2", | ||
"type": "number", | ||
"format": "default" | ||
} | ||
], | ||
"missingValues": [ | ||
"" | ||
], | ||
"primaryKey": "name", | ||
"foreignKeys": [ | ||
{ | ||
"fields": "bus", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "emission_bus_0", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"path": "data/elements/load.csv", | ||
"profile": "tabular-data-resource", | ||
"name": "load", | ||
"format": "csv", | ||
"mediatype": "text/csv", | ||
"encoding": "utf-8", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "integer", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "profile", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "type", | ||
"type": "string", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "bus", | ||
"type": "string", | ||
"format": "default" | ||
} | ||
], | ||
"missingValues": [ | ||
"" | ||
], | ||
"primaryKey": "name", | ||
"foreignKeys": [ | ||
{ | ||
"fields": "bus", | ||
"reference": { | ||
"resource": "bus", | ||
"fields": "name" | ||
} | ||
}, | ||
{ | ||
"fields": "profile", | ||
"reference": { | ||
"resource": "load_profile" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"path": "data/sequences/load_profile.csv", | ||
"profile": "tabular-data-resource", | ||
"name": "load_profile", | ||
"format": "csv", | ||
"mediatype": "text/csv", | ||
"encoding": "utf-8", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "timeindex", | ||
"type": "datetime", | ||
"format": "default" | ||
}, | ||
{ | ||
"name": "electricity-load-profile", | ||
"type": "number", | ||
"format": "default" | ||
} | ||
], | ||
"missingValues": [ | ||
"" | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.