Skip to content

Commit d1d62c2

Browse files
author
IlkaCu
authored
create table grid.ego_pf_hv_data_check
1 parent 4b6fd40 commit d1d62c2

1 file changed

Lines changed: 100 additions & 0 deletions

File tree

preprocessing/sql_snippets/ego_dp_structure_versioning.sql

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6033,3 +6033,103 @@ COMMENT ON TABLE supply.ego_aggr_weather IS '{
60336033
],
60346034
"metadata_version": "1.3"
60356035
}';
6036+
6037+
-- data check for pf data
6038+
DROP TABLE IF EXISTS grid.ego_pf_hv_data_check;
6039+
6040+
CREATE TABLE grid.ego_pf_hv_data_check
6041+
(
6042+
test_id integer NOT NULL,
6043+
version character varying NOT NULL,
6044+
scn_name character varying NOT NULL,
6045+
test character varying NOT NULL,
6046+
table_name character varying,
6047+
count integer,
6048+
CONSTRAINT hv_grid_data_check_pkey PRIMARY KEY (version, test_id)
6049+
);
6050+
6051+
ALTER TABLE grid.ego_pf_hv_data_check
6052+
OWNER TO oeuser;
6053+
6054+
-- metadata
6055+
6056+
COMMENT ON TABLE grid.ego_pf_hv_data_check IS '{
6057+
"title": "eGo pf data check",
6058+
"description": "A plausibility check for powerflow data",
6059+
"language": [ "eng" ],
6060+
"spatial": {
6061+
"location": "none",
6062+
"extend": "none",
6063+
"resolution": "none"
6064+
},
6065+
"temporal": {
6066+
"reference_date": "none",
6067+
"start": "none",
6068+
"end": "none",
6069+
"resolution": "none"
6070+
},
6071+
"sources": [
6072+
{
6073+
"name": "eGo dataprocessing",
6074+
"description": "open_eGo dataprocessing code",
6075+
"url": "https://github.com/openego/data_processing",
6076+
"license": "GNU Affero General Public License Version 3 (AGPL-3.0)",
6077+
"copyright": "eGo dataprocessing © Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems © Europa-Universität Flensburg, Centre for Sustainable Energy Systems © Reiner Lemoine Institut © DLR Institute for Networked Energy Systems"
6078+
}
6079+
],
6080+
"license": {
6081+
"id": "ODbL-1.0",
6082+
"name": "Open Data Commons Open Database License 1.0",
6083+
"version": "1.0",
6084+
"url": "https://opendatacommons.org/licenses/odbl/1.0/",
6085+
"instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!",
6086+
"copyright": "© Flensburg University of Applied Sciences, Center for Sustainable Energy Systems"
6087+
},
6088+
"contributors": [
6089+
{
6090+
"name": "ilka_cussmann",
6091+
"email": "ilka.cussmann@hs-flensburg.de",
6092+
"date": "2018-07-18",
6093+
"comment": "Create table"
6094+
}
6095+
],
6096+
"resources": [
6097+
{
6098+
"fields": [
6099+
{
6100+
"name": "test_id",
6101+
"description": "unique ID for the specific test",
6102+
"unit": ""
6103+
},
6104+
{
6105+
"name": "version",
6106+
"unit": "",
6107+
"description": "version number"
6108+
},
6109+
{
6110+
"name": "scn_name",
6111+
"unit": "",
6112+
"description": "scenario name"
6113+
},
6114+
{
6115+
"name": "test",
6116+
"unit": " ",
6117+
"description": "description of executed test"
6118+
},
6119+
{
6120+
"name": "table_name",
6121+
"unit": "",
6122+
"description": "name of tested table"
6123+
},
6124+
{
6125+
"name": "count",
6126+
"unit": "",
6127+
"description": "number of buggy entries"
6128+
}
6129+
],
6130+
"name": "grid.ego_pf_hv_data_check",
6131+
"format": "sql"
6132+
}
6133+
],
6134+
"metadata_version": "1.3"
6135+
}';

0 commit comments

Comments
 (0)