@@ -13,8 +13,6 @@ __author__ = "wolfbunke"
1313Notes:
1414------
1515
16- Part I:
17- Set up Status Quo data and create standardized table of all scenarios
1816 Part II:
1917 Power plants by NEP 2035 scenario data
2018 Part III:
@@ -30,213 +28,6 @@ Documentation:
3028
3129*/
3230
33- -- ego scenario log (version,io,schema_name,table_name,script_name,comment)
34- SELECT ego_scenario_log(' v0.3.0' ,' input' ,' supply' ,' ego_dp_supply_conv_powerplant' ,' .sql' ,' ' );
35-
36- DROP TABLE IF EXISTS model_draft .ego_dp_supply_conv_powerplant CASCADE;
37- CREATE TABLE model_draft .ego_dp_supply_conv_powerplant
38- (
39- preversion text NOT NULL ,
40- id integer NOT NULL ,
41- bnetza_id text ,
42- company text ,
43- name text ,
44- postcode text ,
45- city text ,
46- street text ,
47- state text ,
48- block text ,
49- commissioned_original text ,
50- commissioned double precision ,
51- retrofit double precision ,
52- shutdown double precision ,
53- status text ,
54- fuel text ,
55- technology text ,
56- type text ,
57- eeg text ,
58- chp text ,
59- capacity double precision ,
60- capacity_uba double precision ,
61- chp_capacity_uba double precision ,
62- efficiency_data double precision ,
63- efficiency_estimate double precision ,
64- network_node text ,
65- voltage text ,
66- network_operator text ,
67- name_uba text ,
68- lat double precision ,
69- lon double precision ,
70- comment text ,
71- geom geometry(Point ,4326 ),
72- voltage_level smallint ,
73- subst_id bigint ,
74- otg_id bigint ,
75- un_id bigint ,
76- la_id integer ,
77- scenario text ,
78- flag text ,
79- nuts varchar ,
80- CONSTRAINT ego_dp_supply_conv_powerplant_pkey PRIMARY KEY (preversion,id,scenario)
81- )
82- WITH (
83- OIDS= FALSE
84- );
85-
86- ALTER TABLE model_draft .ego_dp_supply_conv_powerplant
87- OWNER TO oeuser;
88-
89- GRANT ALL ON TABLE model_draft .ego_dp_supply_conv_powerplant TO oeuser;
90-
91- -- DROP INDEX model_draft.ego_dp_supply_res_powerplant_idx;
92- CREATE INDEX ego_dp_supply_conv_powerplant_idx
93- ON model_draft .ego_dp_supply_conv_powerplant
94- USING gist
95- (geom);
96- -- metadata description
97-
98- COMMENT ON TABLE model_draft .ego_dp_supply_conv_powerplant
99- IS
100- ' {
101- "title": "eGo Conventional power plants in Germany by Scenario",
102- "description": "This dataset contains an augmented and corrected power plant list based on the power plant list provided by the OPSD (BNetzA and UBA) and NEP Kraftwerksliste 2015 for the scenario B1-2035 and the ZNES scenario eGo 100 in 2050.",
103- "language": [ "eng", "ger" ],
104- "spatial":
105- {"location": "Germany",
106- "extent": "europe",
107- "resolution": "100 m"},
108- "temporal":
109- {"reference_date": "2016-01-01",
110- "start": "1900-01-01",
111- "end": "2049-12-31",
112- "resolution": ""},
113- "sources": [
114- {"name": "eGo data processing",
115- "description": "Scripts with allocate Geometry by OpenStreetMap Objects or create future scenarios by high resolution geo-allocation",
116- "url": "https://github.com/openego/data_processing",
117- "license": "GNU Affero General Public License Version 3 (AGPL-3.0)",
118- "copyright": "© ZNES Europa-Universität Flensburg"},
119-
120- {"name": "Open Power System Data (OPSD)",
121- "url": "http://data.open-power-system-data.org/conventional_power_plants/2016-02-08/",
122- "license": "Creative Commons Attribution 4.0 International",
123- "copyright": "© Open Power System Data. 2017"},
124-
125- {"name": "Bundesnetzagentur (BNetzA)",
126- "description": "The Federal Network Agency for Electricity, Gas, Telecommunications, Posts and Railway Data is in Germany data provider of power plant",
127- "url": "https://www.bundesnetzagentur.de/DE/Sachgebiete/ElektrizitaetundGas/Unternehmen_Institutionen/ErneuerbareEnergien/Anlagenregister/Anlagenregister_Veroeffentlichung/Anlagenregister_Veroeffentlichungen_node.html",
128- "license": "Creative Commons Namensnennung-Keine Bearbeitung 3.0 Deutschland Lizenz",
129- "copyright": "© Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen; Pressestelle"}
130- ],
131- "license": [
132- {"id": "ODbL-1.0",
133- "name": "Open Data Commons Open Database License 1.0",
134- "version": "1.0",
135- "url": "https://opendatacommons.org/licenses/odbl/1.0/",
136- "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!",
137- "copyright": "© ZNES Europa-Universität Flensburg"} ],
138- "contributors": [
139- {"name": "wolfbunke", "email": " ", "date": "01.06.2017", "comment": "Create and restructure scripts and table"}],
140- "resources": [
141- {"name": "model_draft.ego_dp_supply_conv_powerplant",
142- "format": "PostgreSQL",
143- "fields": [
144- {"name": "preversion", "description": "Preversion ID of data preprocessing", "unit": "" },
145- {"name": "id", "description": "Unique identifier", "unit": "" },
146- {"name": "bnetza_id", "description": "Bundesnetzagentur unit ID", "unit": " " },
147- {"name": "company", "description": "Name of company", "unit": " " },
148- {"name": "name", "description": "name of unit ", "unit": " " },
149- {"name": "postcode", "description": "postcode ", "unit": " " },
150- {"name": "city", "description": "Name of City", "unit": " " },
151- {"name": "street", "description": "Street name, address", "unit": " " },
152- {"name": "state", "description": "Name of federate state of location", "unit": " " },
153- {"name": "block", "description": "Power plant block", "unit": " " },
154- {"name": "commissioned_original", "description": "Year of commissioning (raw data)", "unit": " " },
155- {"name": "commissioned", "description": "Year of commissioning", "unit": " " },
156- {"name": "retrofit", "description": "Year of modernization according to UBA data", "unit": " " },
157- {"name": "shutdown", "description": "Year of decommissioning", "unit": " " },
158- {"name": "status", "description": "Power plant status", "unit": " " },
159- {"name": "fuel", "description": "Used fuel or energy source", "unit": " " },
160- {"name": "technology", "description": "Power plant technology or sort", "unit": " " },
161- {"name": "type", "description": "Purpose of the produced power", "unit": " " },
162- {"name": "eeg", "description": "Status of being entitled to a renumeration", "unit": " " },
163- {"name": "chp", "description": "Status of being able to supply heat", "unit": " " },
164- {"name": "capacity", "description": "Power capacity", "unit": " " },
165- {"name": "capacity_uba", "description": "Power capacity according to UBA data", "unit": " " },
166- {"name": "chp_capacity_uba", "description": "Heat capacity according to UBA data", "unit": " " },
167- {"name": "efficiency_data", "description": "Proportion between power output and input", "unit": " " },
168- {"name": "efficiency_estimate", "description": "Estimated proportion between power output and input", "unit": " " },
169- {"name": "network_node", "description": "Connection point to the electricity grid", "unit": " " },
170- {"name": "voltage", "description": "Grid or transformation level of the network node", "unit": " " },
171- {"name": "network_operator", "description": "Network operator of the grid or transformation level", "unit": " " },
172- {"name": "name_uba", "description": "Power plant name according to UBA data", "unit": " " },
173- {"name": "lat", "description": "Precise geographic coordinates - latitude", "unit": " " },
174- {"name": "lon", "description": "Precise geographic coordinates - longitude", "unit": " " },
175- {"name": "comment", "description": "Further comments", "unit": " " },
176- {"name": "geom", "description": "Geometry Point", "unit": " " },
177- {"name": "voltage_level", "description": " ", "unit": " " },
178- {"name": "subst_id", "description": "Unique identifier of related substation", "unit": "" },
179- {"name": "otg_id", "description": "Unique identifier of related substation from osmTGmod", "unit": "" },
180- {"name": "un_id", "description": "Unique identifier of RES and CONV power plants", "unit": "" },
181- {"name": "la_id", "description": "Unique identifier of RES and CONV power plants", "unit": "" },
182- {"name": "scenario", "description": "Name of scenario", "unit": "" },
183- {"name": "flag", "description": "Flag of scenario changes of an power plant unit (repowering, decommission or commissioning).", "unit": "" },
184- {"name": "nuts", "description": "NUTS ID).", "unit": ""} ] } ],
185- "meta_version": "1.3" }' ;
186-
187- -- select description
188- SELECT obj_description(' model_draft.ego_dp_supply_conv_powerplant' ::regclass)::json;
189-
190- -- ------------------------------------------------------------------------------
191- -- Part I
192- -- Insert conventional power plants Scenarios: Status-Quo
193- -- ------------------------------------------------------------------------------
194-
195- INSERT INTO model_draft .ego_dp_supply_conv_powerplant
196- SELECT
197- ' v0.3.0' ::text as preversion,
198- gid as id,
199- bnetza_id,
200- company,
201- name,
202- postcode,
203- city,
204- street,
205- state,
206- block,
207- commissioned_original,
208- commissioned,
209- retrofit,
210- shutdown,
211- status,
212- fuel,
213- technology,
214- type,
215- eeg,
216- chp,
217- capacity,
218- capacity_uba,
219- chp_capacity_uba,
220- efficiency_data,
221- efficiency_estimate,
222- network_node,
223- voltage,
224- network_operator,
225- name_uba,
226- lat,
227- lon,
228- comment,
229- geom,
230- voltage_level,
231- subst_id,
232- otg_id,
233- un_id,
234- NULL ::int as la_id,
235- ' Status Quo' ::text as scenario,
236- NULL ::text as flag,
237- NULL ::text as nuts
238- FROM
239- model_draft .ego_supply_conv_powerplant ;
24031
24132-- ------------------------------------------------------------------------------
24233-- Part II
0 commit comments