This file contains hidden or 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
import atlite | |
import geopandas as gpd | |
import pandas as pd | |
country_shapes = gpd.read_file("country_shapes.geojson").set_index('name')['geometry'] | |
runoff = [] | |
for year in range(1941, 2024): |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# SPDX-FileCopyrightText: : 2023-2024 The PyPSA-Eur Authors | |
# | |
# SPDX-License-Identifier: MIT | |
# This script helps to generate a scenarios.yaml file for PyPSA-Eur. | |
# You can modify the template to your needs and define all possible combinations of config values that should be considered. | |
if "snakemake" in globals(): | |
filename = snakemake.output[0] |
This file contains hidden or 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
% (changes from apalike to cell by Tom Schneider are public domain) | |
% | |
% version = 2.03 of cell.sty 2009 Jul 21 | |
% 2009 Jul 21, 2.03: upgrade documentation | |
% 2009 Jul 15, 2.02: no bib indent | |
% 2009 Jul 14, 2.01: simplify | |
% 2009 Jul 13, 2.00: modernize to match current version of Cell | |
% 1998 Mar 3, 1.00: original version of cell.sty | |
% Dr. Thomas D. Schneider |
This file contains hidden or 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
% (changes from apalike to cell by Tom Schneider are public domain.) | |
% | |
% BibTex `cell' bibliography style | |
% version = 1.28 of cell.bst 2009 Jul 21 | |
% 2009 Jul 21, 1.28 upgrade documentation | |
% 2009 Jul 13, 1.27 suppress notes in article | |
% 2009 Jul 11, 1.26 upgrade to modern cell: &->and, give titles, \emph{vol} | |
% 1994 Oct 15, 1.25 from version = 1.27 of jmb.bst 1992 October 22 | |
% This bibliography style is for the journal Cell. |
This file contains hidden or 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
def create_view_object(cbgn_no_duplicate,buses_region): | |
"""Create object to view gas network data.""" | |
cbgn_no_duplicate=cbgn_no_duplicate.merge(buses_region,left_on='buses_start',right_on='name') | |
cbgn_no_duplicate=cbgn_no_duplicate.merge(buses_region,left_on='buses_destination',right_on='name') | |
cbgn_no_duplicate.geometry_x=cbgn_no_duplicate.geometry_x.apply(lambda x: x.centroid) | |
cbgn_no_duplicate.geometry_y=cbgn_no_duplicate.geometry_y.apply(lambda x: x.centroid) | |
cbgn_no_duplicate['geometry']=list(zip(cbgn_no_duplicate['geometry_x'], | |
cbgn_no_duplicate['geometry_y'])) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.