|
275 | 275 | "title: National generation capacity\n", |
276 | 276 | "description: Aggregated generation capacity by technology and country\n", |
277 | 277 | "long_description: This data package comprises technology-specific aggregated generation capacities for European countries. The generation capacities are consistently categorized based on fuel and technology. For each European country, various references are used ranging from international (e.g. ENTSOE or EUROSTAT) to national sources from e.g. regulatory authorities. The input data is processed in the script linked below. \n", |
278 | | - "version: \"2016-10-23\"\n", |
| 278 | + "version: \"2016-10-27\"\n", |
279 | 279 | "keywords: \n", |
280 | 280 | " - generation capacity\n", |
281 | 281 | " - conventional generation\n", |
282 | 282 | " - renewable generation\n", |
283 | 283 | " - Europe\n", |
284 | 284 | " - Open Power System Data\n", |
285 | 285 | "homepage: http://data.open-power-system-data.org/national_generation_capacity/\n", |
286 | | - "documentation: https://github.com/Open-Power-System-Data/national_generation_capacity/blob/2016-10-23/main.ipynb\n", |
287 | | - "geographical_scope: 28 European countries\n", |
288 | | - "last_changes: Revised technology classification, restructured input file format\n", |
| 286 | + "documentation: https://github.com/Open-Power-System-Data/national_generation_capacity/blob/2016-10-27/main.ipynb\n", |
| 287 | + "geographical-scope: 28 European countries\n", |
| 288 | + "last_changes: Revised technology classification, restructured input file format, adjusted input data to final version\n", |
289 | 289 | "\n", |
290 | 290 | "resources:\n", |
291 | | - " - path: aggregated_capacity.xlsx\n", |
| 291 | + " - path: national_generation_capacity.xlsx\n", |
292 | 292 | " format: xlsx\n", |
293 | 293 | " mediatype: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n", |
294 | | - " - path: aggregated_capacity_stacked.csv\n", |
| 294 | + " - path: national_generation_capacity_stacked.csv\n", |
295 | 295 | " format: csv\n", |
296 | 296 | " mediatype: text/csv\n", |
297 | 297 | " schema: \n", |
|
344 | 344 | " - name: technology_level\n", |
345 | 345 | " description: Technology (aggregation or classification by fuel and technology)\n", |
346 | 346 | " type: boolean\n", |
347 | | - " - path: aggregated_capacity_stacked.xlsx\n", |
| 347 | + " - path: national_generation_capacity_stacked.xlsx\n", |
348 | 348 | " format: xlsx\n", |
349 | 349 | " mediatype: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n", |
350 | 350 | " schema: \n", |
|
504 | 504 | " os.path.join('output', 'original_data', data_file))\n", |
505 | 505 | "\n", |
506 | 506 | "# Write the result to file\n", |
507 | | - "data.to_csv(os.path.join(output_path, 'aggregated_capacity_stacked.csv'), \n", |
| 507 | + "data.to_csv(os.path.join(output_path, 'national_generation_capacity_stacked.csv'), \n", |
508 | 508 | " encoding='utf-8', index_label='ID')\n", |
509 | 509 | "\n", |
510 | 510 | "# Write the results to excel file\n", |
511 | | - "data.to_excel(os.path.join(output_path, 'aggregated_capacity_stacked.xlsx'), \n", |
| 511 | + "data.to_excel(os.path.join(output_path, 'national_generation_capacity_stacked.xlsx'), \n", |
512 | 512 | " sheet_name='output', index_label='ID')\n", |
513 | 513 | "shutil.copy2(os.path.join('input', data_file), \n", |
514 | | - " os.path.join('output', 'aggregated_capacity.xlsx'))\n", |
| 514 | + " os.path.join('output', 'national_generation_capacity.xlsx'))\n", |
515 | 515 | "\n", |
516 | 516 | "# Write the results to sql database\n", |
517 | | - "data.to_sql('aggregated_capacity',\n", |
| 517 | + "data.to_sql('national_generation_capacity_stacked',\n", |
518 | 518 | " sqlite3.connect(os.path.join(output_path, \n", |
519 | 519 | " 'national_generation_capacity.sqlite')),\n", |
520 | 520 | " if_exists=\"replace\",index_label='ID')\n", |
|
0 commit comments