diff --git a/data/gas_network/Europe-Gas-Tracker-August-2022.xlsx b/data/gas_network/Europe-Gas-Tracker-August-2022.xlsx deleted file mode 100644 index 9e25cc61..00000000 Binary files a/data/gas_network/Europe-Gas-Tracker-August-2022.xlsx and /dev/null differ diff --git a/data/gas_network/planned_LNGs.csv b/data/gas_network/planned_LNGs.csv deleted file mode 100644 index 65706216..00000000 --- a/data/gas_network/planned_LNGs.csv +++ /dev/null @@ -1,8 +0,0 @@ -name,geometry,max_cap_store2pipe_M_m3_per_d,source -Wilhelmshaven,"POINT(8.133 53.516)",27.4,https://www.gem.wiki/Wilhelmshaven_LNG_Terminal -Brunsbüttel,"POINT(8.976 53.914)",19.2,https://www.gem.wiki/Brunsb%C3%BCttel_LNG_Terminal -Stade,"POINT(9.510 53.652)",32.9,https://www.gem.wiki/Stade_LNG_Terminal -Alexandroupolis,"POINT(25.843 40.775)",16.7,https://www.gem.wiki/Alexandroupolis_LNG_Terminal -Shannon,"POINT(-9.442 52.581)",22.5,https://www.gem.wiki/Shannon_LNG_Terminal -Gothenburg,"POINT(11.948 57.702)",1.4,https://www.gem.wiki/Gothenburg_LNG_Terminal -Cork,"POINT(-8.323 51.831)",11.0,https://www.gem.wiki/Cork_LNG_Terminal \ No newline at end of file diff --git a/scripts/build_gas_input_locations.py b/scripts/build_gas_input_locations.py index c6e3d634..f33fa605 100644 --- a/scripts/build_gas_input_locations.py +++ b/scripts/build_gas_input_locations.py @@ -11,6 +11,9 @@ from shapely import wkt from cluster_gas_network import load_bus_regions +import warnings +warnings.filterwarnings('ignore') + def read_scigrid_gas(fn): df = gpd.read_file(fn) @@ -23,6 +26,9 @@ def build_gas_input_locations(lng_fn, entry_fn, prod_fn, countries): # LNG terminals lng = gpd.read_file(lng_fn) + for index in lng.index: + lng.CapacityInMtpa[index] = float(lng.CapacityInMtpa[index]) + # Entry points from outside the model scope entry = read_scigrid_gas(entry_fn) entry["from_country"] = entry.from_country.str.rstrip() diff --git a/scripts/retrieve_gas_input_locations.py b/scripts/retrieve_gas_input_locations.py index 82840196..8e3f46ac 100644 --- a/scripts/retrieve_gas_input_locations.py +++ b/scripts/retrieve_gas_input_locations.py @@ -1,12 +1,11 @@ """ -Retrieve gas infrastructure data fro +Retrieve LNG gas infrastructure data from "https://globalenergymonitor.org/wp-content/uploads/2022/09/Europe-Gas-Tracker-August-2022.xlsx" +Note: This is the script that removes non EU grid countries and terminals that are not closely connected to the europe network """ import logging -from helper import progress_retrieve - -import zipfile -from pathlib import Path +import pandas as pd +import geopandas as gpd logger = logging.getLogger(__name__) @@ -14,18 +13,15 @@ logger = logging.getLogger(__name__) if __name__ == "__main__": if 'snakemake' not in globals(): from helper import mock_snakemake - snakemake = mock_snakemake('retrieve_gas_network_data') + snakemake = mock_snakemake('retrieve_gas_input_locations') rootpath = '..' else: rootpath = '.' -# LNG terminals + # LNG terminals - lng_url="https://globalenergymonitor.org/wp-content/uploads/2022/09/Europe-Gas-Tracker-August-2022.xlsx", - - storage_options = {'User-Agent': 'Mozilla/5.0'} - df = pd.read_excel(lng_url, storage_options=storage_options, sheet_name = 'LNG terminals - data') - #df = pd.read_excel(fn, sheet_name = 'LNG terminals - data') + lng_url="https://globalenergymonitor.org/wp-content/uploads/2022/09/Europe-Gas-Tracker-August-2022.xlsx" + df = pd.read_excel(lng_url,storage_options={'User-Agent': 'Mozilla/5.0'}, sheet_name = 'LNG terminals - data') df = df.set_index("ComboID") remove_status = ['Cancelled']