|
1 | | -/* |
| 1 | +/* |
2 | 2 | Rectifies incorrect or implausible records in power plant list and adjusts it for further use |
3 | 3 |
|
4 | 4 | __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" |
@@ -267,6 +267,49 @@ UPDATE model_draft.ego_dp_supply_conv_powerplant |
267 | 267 | SET voltage_level=7 |
268 | 268 | WHERE capacity < 0.1 /*voltage_level =7 when capacity lower than 0.1*/; |
269 | 269 |
|
| 270 | + |
| 271 | +-- Due to discrepancies between the given NEP 2035 power plant lsit |
| 272 | +-- and the the installed Capacities of the study NEP 2015 with scenario B2035 |
| 273 | +-- a correction of the capacities is done. |
| 274 | + |
| 275 | +DROP TABLE IF EXISTS model_draft.ego_supply_conv_nep2035_temp CASCADE; |
| 276 | +CREATE TABLE model_draft.ego_supply_conv_nep2035_temp AS |
| 277 | + SELECT * |
| 278 | + FROM |
| 279 | + model_draft.ego_dp_supply_conv_powerplant |
| 280 | + WHERE scenario in ('NEP 2035'); |
| 281 | + |
| 282 | +-- create index GIST (geom) |
| 283 | +CREATE INDEX ego_supply_conv_nep2035_temp_geom_idx |
| 284 | + ON model_draft.ego_supply_conv_nep2035_temp USING gist (geom); |
| 285 | + |
| 286 | +-- grant (oeuser) |
| 287 | +ALTER TABLE model_draft.ego_supply_conv_nep2035_temp OWNER TO oeuser; |
| 288 | + |
| 289 | +-- Repowering units |
| 290 | +UPDATE model_draft.ego_supply_conv_nep2035_temp |
| 291 | +set capacity = capacity + round(capacity*((12700.-14477.)/12700.)) |
| 292 | +Where fuel ='pumped_storage'; |
| 293 | + |
| 294 | +UPDATE model_draft.ego_supply_conv_nep2035_temp |
| 295 | +set capacity = capacity + round(capacity*((33500.-35390.)/33500.)) |
| 296 | +Where fuel ='gas'; |
| 297 | + |
| 298 | +UPDATE model_draft.ego_supply_conv_nep2035_temp |
| 299 | +set capacity = capacity + round(capacity*((9100.-12240)/9100.)) |
| 300 | +Where fuel ='lignite'; |
| 301 | + |
| 302 | +UPDATE model_draft.ego_supply_conv_nep2035_temp |
| 303 | +set capacity = capacity + round(capacity*((11000.-13860.)/11000.)) |
| 304 | +Where fuel ='coal'; |
| 305 | + |
| 306 | +Update model_draft.ego_dp_supply_conv_powerplant A |
| 307 | + set capacity =B.capacity |
| 308 | +FROM model_draft.ego_supply_conv_nep2035_temp B |
| 309 | +WHERE A.scenario in ('NEP 2035') |
| 310 | +AND A.id = B.id; |
| 311 | + |
| 312 | + |
270 | 313 | SELECT obj_description('model_draft.ego_dp_supply_conv_powerplant' ::regclass) ::json; |
271 | 314 |
|
272 | 315 | -- ego scenario log (version,io,schema_name,table_name,script_name,comment) |
|
0 commit comments