From 0b9d082753c3a4622468ddc252175f3d3c789677 Mon Sep 17 00:00:00 2001 From: Mathias157 Date: Sun, 22 Sep 2024 16:17:26 +0200 Subject: [PATCH 1/4] Started a TechData class that makes the technology catalogues more accesible through download functions and load functions, to work on #14 --- .../interactive/dashboard/technology_data.py | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 src/pybalmorel/interactive/dashboard/technology_data.py diff --git a/src/pybalmorel/interactive/dashboard/technology_data.py b/src/pybalmorel/interactive/dashboard/technology_data.py new file mode 100644 index 0000000..e783db7 --- /dev/null +++ b/src/pybalmorel/interactive/dashboard/technology_data.py @@ -0,0 +1,105 @@ +from dataclasses import dataclass, field +from urllib.parse import urljoin +import pandas as pd +import os +import requests + +@dataclass +class TechData: + files: dict = field(default_factory=lambda: { + "el_and_dh" : "technology_data_for_el_and_dh.xlsx", + "indi_heat" : "technology_data_heating_installations.xlsx", + "ren_fuels" : "data_sheets_for_renewable_fuels.xlsx", + "storage" : "technology_datasheet_for_energy_storage.xlsx", + "ccts" : "technology_data_for_carbon_capture_transport_storage.xlsx", + "indu_heat" : "technology_data_for_industrial_process_heat_0.xlsx", + "trans" : "energy_transport_datasheet.xlsx" + }) + path: str = r"C:\Users\mathi\gitRepos\balmorel-preprocessing\RawDataProcessing\Data\Technology Data" # Change this later + + def load(self, file: str): + f = pd.read_excel(os.path.join(self.path, self.files[file]), + sheet_name='alldata_flat') + return f + + # Function to download a file from a URL and save it to a specified folder + def download_file(self, url, save_folder, filename=None): + """ + Downloads a file from a given URL and saves it to a specified folder. + Args: + url (str): The URL of the file to download. + save_folder (str): The folder where the file should be saved. + filename (str, optional): The name to save the file as. If not provided, the filename is extracted from the URL. + Returns: + str: The full path to the saved file. + Raises: + requests.exceptions.RequestException: If the download fails. + Notes: + - The function ensures that the save folder exists. + - The file is downloaded in chunks to handle large files efficiently. + chunk_size: + The size of each chunk of data to be written to the file. In this case, it is set to 8192 bytes (8 KB). + """ + # Make sure the save folder exists + os.makedirs(save_folder, exist_ok=True) + + # If no filename is provided, extract the filename from the URL + if filename is None: + filename = url.split("/")[-1] + + # Full path to save the file + save_path = os.path.join(save_folder, filename) + + # Download the file with streaming to handle large files + with requests.get(url, stream=True) as response: + response.raise_for_status() # Raise an error if the download fails + with open(save_path, 'wb') as file: + for chunk in response.iter_content(chunk_size=8192): + file.write(chunk) + + print(f"Downloaded file to: {save_path}") + return save_path + + def download_catalogue(self, + file: str, + save_to_folder: str = '.', + domain: str = "https://ens.dk/sites/ens.dk/files/Analyser/"): + """Downloads technology catalogue from DEA website + + Args: + file (str): _description_ + save_to_folder (str, optional): _description_. Defaults to '.'. + domain (_type_, optional): _description_. Defaults to "https://ens.dk/sites/ens.dk/files/Analyser/". + """ + try: + # You probably used the short name used in this class + filename = self.files[file] + except KeyError: + # ..in case you wrote the full name of the file + filename = file + + if not(filename in os.listdir(save_to_folder)): + self.download_file(urljoin(domain, filename), save_to_folder) + else: + print('\nThe file:\t\t%s\nalready exists in:\t%s'%(self.files[file], save_to_folder)) + + def download_all_catalogues(self, + save_to_folder: str = '.'): + for file in self.files.keys(): + self.download_catalogue(file, save_to_folder) + +if __name__ == '__main__': + td = TechData() + + # Download catalogues + # td.download_catalogue("el_and_dh") + # td.download_all_catalogues() + + # Get electricity and district heating examples + f = td.load('el_and_dh') + # series = pd.Series(f.par.unique()) + # print(series[series.str.find('Nominal investment (*total)') != -1]) + year = 2050 + tech = 'Offshore wind turbines - renewable power - wind - large' + estimate = 'ctrl' # ctrl, lower, upper + print(f.query("Technology == @tech and cat == 'Financial data' and year == @year and est == @estimate")) \ No newline at end of file From f93ff50970593489e4027288861e1a706f308cd3 Mon Sep 17 00:00:00 2001 From: Mathias157 Date: Wed, 9 Oct 2024 15:36:05 +0200 Subject: [PATCH 2/4] Moved DEA tech data class to classes --- src/pybalmorel/classes.py | 87 +++++++++++++++ .../interactive/dashboard/technology_data.py | 105 ------------------ 2 files changed, 87 insertions(+), 105 deletions(-) delete mode 100644 src/pybalmorel/interactive/dashboard/technology_data.py diff --git a/src/pybalmorel/classes.py b/src/pybalmorel/classes.py index c635cc7..0f19f79 100644 --- a/src/pybalmorel/classes.py +++ b/src/pybalmorel/classes.py @@ -13,6 +13,9 @@ import gams import pandas as pd import numpy as np +from dataclasses import dataclass, field +from urllib.parse import urljoin +import requests from typing import Union, Tuple from functools import partial from matplotlib.figure import Figure @@ -394,7 +397,91 @@ def load_incfiles(self, # Store the database (will take some minutes) self.input_data[scenario] = model_db.get_out_db() +@dataclass +class TechData: + files: dict = field(default_factory=lambda: { + "el_and_dh" : "technology_data_for_el_and_dh.xlsx", + "indi_heat" : "technology_data_heating_installations.xlsx", + "ren_fuels" : "data_sheets_for_renewable_fuels.xlsx", + "storage" : "technology_datasheet_for_energy_storage.xlsx", + "ccts" : "technology_data_for_carbon_capture_transport_storage.xlsx", + "indu_heat" : "technology_data_for_industrial_process_heat_0.xlsx", + "trans" : "energy_transport_datasheet.xlsx" + }) + path: str = r"C:\Users\mathi\gitRepos\balmorel-preprocessing\RawDataProcessing\Data\Technology Data" # Change this later + + def load(self, file: str): + f = pd.read_excel(os.path.join(self.path, self.files[file]), + sheet_name='alldata_flat') + return f + + # Function to download a file from a URL and save it to a specified folder + def download_file(self, url, save_folder, filename=None): + """ + Downloads a file from a given URL and saves it to a specified folder. + Args: + url (str): The URL of the file to download. + save_folder (str): The folder where the file should be saved. + filename (str, optional): The name to save the file as. If not provided, the filename is extracted from the URL. + Returns: + str: The full path to the saved file. + Raises: + requests.exceptions.RequestException: If the download fails. + Notes: + - The function ensures that the save folder exists. + - The file is downloaded in chunks to handle large files efficiently. + chunk_size: + The size of each chunk of data to be written to the file. In this case, it is set to 8192 bytes (8 KB). + """ + # Make sure the save folder exists + os.makedirs(save_folder, exist_ok=True) + + # If no filename is provided, extract the filename from the URL + if filename is None: + filename = url.split("/")[-1] + # Full path to save the file + save_path = os.path.join(save_folder, filename) + + # Download the file with streaming to handle large files + with requests.get(url, stream=True) as response: + response.raise_for_status() # Raise an error if the download fails + with open(save_path, 'wb') as file: + for chunk in response.iter_content(chunk_size=8192): + file.write(chunk) + + print(f"Downloaded file to: {save_path}") + return save_path + + def download_catalogue(self, + file: str, + save_to_folder: str = '.', + domain: str = "https://ens.dk/sites/ens.dk/files/Analyser/"): + """Downloads technology catalogue from DEA website + + Args: + file (str): _description_ + save_to_folder (str, optional): _description_. Defaults to '.'. + domain (_type_, optional): _description_. Defaults to "https://ens.dk/sites/ens.dk/files/Analyser/". + """ + try: + # You probably used the short name used in this class + filename = self.files[file] + except KeyError: + # ..in case you wrote the full name of the file + filename = file + + if not(filename in os.listdir(save_to_folder)): + self.download_file(urljoin(domain, filename), save_to_folder) + else: + print('\nThe file:\t\t%s\nalready exists in:\t%s'%(self.files[file], save_to_folder)) + + def download_all_catalogues(self, + save_to_folder: str = '.'): + for file in self.files.keys(): + self.download_catalogue(file, save_to_folder) + + class GUI: def __init__(self) -> None: pass diff --git a/src/pybalmorel/interactive/dashboard/technology_data.py b/src/pybalmorel/interactive/dashboard/technology_data.py deleted file mode 100644 index e783db7..0000000 --- a/src/pybalmorel/interactive/dashboard/technology_data.py +++ /dev/null @@ -1,105 +0,0 @@ -from dataclasses import dataclass, field -from urllib.parse import urljoin -import pandas as pd -import os -import requests - -@dataclass -class TechData: - files: dict = field(default_factory=lambda: { - "el_and_dh" : "technology_data_for_el_and_dh.xlsx", - "indi_heat" : "technology_data_heating_installations.xlsx", - "ren_fuels" : "data_sheets_for_renewable_fuels.xlsx", - "storage" : "technology_datasheet_for_energy_storage.xlsx", - "ccts" : "technology_data_for_carbon_capture_transport_storage.xlsx", - "indu_heat" : "technology_data_for_industrial_process_heat_0.xlsx", - "trans" : "energy_transport_datasheet.xlsx" - }) - path: str = r"C:\Users\mathi\gitRepos\balmorel-preprocessing\RawDataProcessing\Data\Technology Data" # Change this later - - def load(self, file: str): - f = pd.read_excel(os.path.join(self.path, self.files[file]), - sheet_name='alldata_flat') - return f - - # Function to download a file from a URL and save it to a specified folder - def download_file(self, url, save_folder, filename=None): - """ - Downloads a file from a given URL and saves it to a specified folder. - Args: - url (str): The URL of the file to download. - save_folder (str): The folder where the file should be saved. - filename (str, optional): The name to save the file as. If not provided, the filename is extracted from the URL. - Returns: - str: The full path to the saved file. - Raises: - requests.exceptions.RequestException: If the download fails. - Notes: - - The function ensures that the save folder exists. - - The file is downloaded in chunks to handle large files efficiently. - chunk_size: - The size of each chunk of data to be written to the file. In this case, it is set to 8192 bytes (8 KB). - """ - # Make sure the save folder exists - os.makedirs(save_folder, exist_ok=True) - - # If no filename is provided, extract the filename from the URL - if filename is None: - filename = url.split("/")[-1] - - # Full path to save the file - save_path = os.path.join(save_folder, filename) - - # Download the file with streaming to handle large files - with requests.get(url, stream=True) as response: - response.raise_for_status() # Raise an error if the download fails - with open(save_path, 'wb') as file: - for chunk in response.iter_content(chunk_size=8192): - file.write(chunk) - - print(f"Downloaded file to: {save_path}") - return save_path - - def download_catalogue(self, - file: str, - save_to_folder: str = '.', - domain: str = "https://ens.dk/sites/ens.dk/files/Analyser/"): - """Downloads technology catalogue from DEA website - - Args: - file (str): _description_ - save_to_folder (str, optional): _description_. Defaults to '.'. - domain (_type_, optional): _description_. Defaults to "https://ens.dk/sites/ens.dk/files/Analyser/". - """ - try: - # You probably used the short name used in this class - filename = self.files[file] - except KeyError: - # ..in case you wrote the full name of the file - filename = file - - if not(filename in os.listdir(save_to_folder)): - self.download_file(urljoin(domain, filename), save_to_folder) - else: - print('\nThe file:\t\t%s\nalready exists in:\t%s'%(self.files[file], save_to_folder)) - - def download_all_catalogues(self, - save_to_folder: str = '.'): - for file in self.files.keys(): - self.download_catalogue(file, save_to_folder) - -if __name__ == '__main__': - td = TechData() - - # Download catalogues - # td.download_catalogue("el_and_dh") - # td.download_all_catalogues() - - # Get electricity and district heating examples - f = td.load('el_and_dh') - # series = pd.Series(f.par.unique()) - # print(series[series.str.find('Nominal investment (*total)') != -1]) - year = 2050 - tech = 'Offshore wind turbines - renewable power - wind - large' - estimate = 'ctrl' # ctrl, lower, upper - print(f.query("Technology == @tech and cat == 'Financial data' and year == @year and est == @estimate")) \ No newline at end of file From bc7c9d0d52f40dfdb7f0cc9f465e3346e137c60b Mon Sep 17 00:00:00 2001 From: Mathias157 Date: Wed, 9 Oct 2024 16:03:10 +0200 Subject: [PATCH 3/4] Started making example --- examples/PreProcessing.ipynb | 277 ++++++++++++++++++++++++++++++++++- src/pybalmorel/__init__.py | 4 +- 2 files changed, 276 insertions(+), 5 deletions(-) diff --git a/examples/PreProcessing.ipynb b/examples/PreProcessing.ipynb index 76df569..8a08965 100644 --- a/examples/PreProcessing.ipynb +++ b/examples/PreProcessing.ipynb @@ -18,7 +18,7 @@ "outputs": [], "source": [ "### 0.1 Use development scripts or the package installed from pip\n", - "use_development = False\n", + "use_development = True\n", "if use_development:\n", " import sys\n", " import os\n", @@ -26,7 +26,7 @@ " project_root = os.path.abspath(os.path.join(os.path.dirname(\"__file__\"), '..'))\n", " if project_root not in sys.path:\n", " sys.path.insert(0, project_root)\n", - " from src.pybalmorel import IncFile, GUI\n", + " from src.pybalmorel import IncFile, GUI, TechData\n", "else:\n", " from pybalmorel import IncFile, GUI" ] @@ -89,11 +89,282 @@ "source": [ "GUI.geofilemaker()" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Make Technology Data" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "The file:\t\ttechnology_data_for_el_and_dh.xlsx\n", + "already exists in:\tfiles\n", + " ws Technology cat par unit priceyear note ref est year val\n", + "3523 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.37\n", + "3524 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.37\n", + "3525 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.38\n", + "3526 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.37\n", + "3527 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.34\n", + "3528 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.35\n", + "3529 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.5\n", + "3530 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.51\n", + "3539 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "3540 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "3541 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "3542 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "3543 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "3544 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "3545 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "3546 09a Wood Chips, Large 40 degree Biomass CHP, 40/80 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "3835 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.35\n", + "3836 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.35\n", + "3837 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.35\n", + "3838 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.34\n", + "3839 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.32\n", + "3840 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.33\n", + "3841 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.47\n", + "3842 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.49\n", + "3851 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2015 1\n", + "3852 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2020 1\n", + "3853 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2030 1\n", + "3854 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2050 1\n", + "3855 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2020 1\n", + "3856 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2050 1\n", + "3857 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2020 1\n", + "3858 09a Wood Chips, Large 50 degree Biomass CHP, 50/100 degree - back pressure - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2050 1\n", + "4147 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.37\n", + "4148 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.37\n", + "4149 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.37\n", + "4150 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.36\n", + "4151 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.34\n", + "4152 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.35\n", + "4153 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.49\n", + "4154 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.5\n", + "4163 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "4164 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "4165 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "4166 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "4167 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "4168 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "4169 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "4170 09a Wood Chips, Medium Biomass CHP - back pressure - wood chips - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "4451 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.15\n", + "4452 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.15\n", + "4453 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.15\n", + "4454 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.15\n", + "4455 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.15\n", + "4456 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.14\n", + "4457 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.15\n", + "4458 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.15\n", + "4467 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "4468 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "4469 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "4470 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "4471 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "4472 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "4473 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "4474 09a Wood Chips, Small Biomass CHP - back pressure - wood chips - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "4755 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.51\n", + "4756 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.51\n", + "4757 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.52\n", + "4758 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.52\n", + "4759 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.5\n", + "4760 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.5\n", + "4761 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.67\n", + "4762 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.67\n", + "4771 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "4772 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "4773 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "4774 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "4775 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "4776 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "4777 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "4778 09b Wood Pellets, Large 40 degr Biomass CHP, 40/80 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "5067 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.49\n", + "5068 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.49\n", + "5069 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.49\n", + "5070 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.49\n", + "5071 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.48\n", + "5072 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.48\n", + "5073 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.64\n", + "5074 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.65\n", + "5083 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2015 1\n", + "5084 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2020 1\n", + "5085 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2030 1\n", + "5086 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2050 1\n", + "5087 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2020 1\n", + "5088 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2050 1\n", + "5089 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2020 1\n", + "5090 09b Wood Pellets, Large 50 degr Biomass CHP, 50/100 degree - back pressure - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2050 1\n", + "5379 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.46\n", + "5380 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.46\n", + "5381 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.46\n", + "5382 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.45\n", + "5383 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.44\n", + "5384 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.44\n", + "5385 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.62\n", + "5386 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.63\n", + "5395 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "5396 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "5397 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "5398 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "5399 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "5400 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "5401 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "5402 09b Wood Pellets, Medium Biomass CHP - back pressure - wood pellets - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "5987 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.45\n", + "5988 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.45\n", + "5989 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.46\n", + "5990 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.46\n", + "5991 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.43\n", + "5992 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.44\n", + "5993 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.6\n", + "5994 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.61\n", + "6003 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "6004 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "6005 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "6006 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "6007 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "6008 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "6009 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "6010 09c Straw, Large, 40 degree Biomass CHP, 40/80 degree - back pressure - straw - large Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "6299 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.43\n", + "6300 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.43\n", + "6301 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.43\n", + "6302 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.43\n", + "6303 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.41\n", + "6304 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.42\n", + "6305 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.57\n", + "6306 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.59\n", + "6315 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2015 1\n", + "6316 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2020 1\n", + "6317 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2030 1\n", + "6318 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2050 1\n", + "6319 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2020 1\n", + "6320 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2050 1\n", + "6321 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2020 1\n", + "6322 09c Straw, Large, 50 degree Biomass CHP, 50/100 degree - back pressure - straw - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2050 1\n", + "6611 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.46\n", + "6612 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.46\n", + "6613 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.46\n", + "6614 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.45\n", + "6615 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.43\n", + "6616 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.44\n", + "6617 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.47\n", + "6618 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.47\n", + "6627 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "6628 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "6629 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "6630 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "6631 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "6632 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "6633 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "6634 09c Straw, Medium Biomass CHP - back pressure - straw - medium Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + "6915 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.18\n", + "6916 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.18\n", + "6917 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.18\n", + "6918 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.18\n", + "6919 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.17\n", + "6920 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.17\n", + "6921 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.18\n", + "6922 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.18\n", + "6931 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "6932 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "6933 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "6934 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "6935 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "6936 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "6937 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "6938 09c Straw, Small Biomass CHP - back pressure - straw - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n", + " ws Technology cat par unit priceyear note ref est year val\n", + "8611 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.44\n", + "8612 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.45\n", + "8613 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.42\n", + "8614 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.4\n", + "8615 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.42\n", + "8616 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.43\n", + "8617 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.41\n", + "8618 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.44\n", + "8627 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.14\n", + "8628 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.14\n", + "8629 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.14\n", + "8630 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.13\n", + "8631 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.13\n", + "8632 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.13\n", + "8633 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.13\n", + "8634 09a Wood Chips extract. plant Biomass CHP - extraction - wood chips - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.14\n", + "8891 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2015 0.59\n", + "8892 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2020 0.59\n", + "8893 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2030 0.59\n", + "8894 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN ctrl 2050 0.52\n", + "8895 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2020 0.57\n", + "8896 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN lower 2050 0.59\n", + "8897 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2020 0.52\n", + "8898 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cb coefficient (50°C/100°C) NaN NaN NaN NaN upper 2050 0.53\n", + "8907 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2015 0.17\n", + "8908 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2020 0.17\n", + "8909 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2030 0.17\n", + "8910 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN ctrl 2050 0.15\n", + "8911 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2020 0.17\n", + "8912 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN lower 2050 0.17\n", + "8913 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2020 0.15\n", + "8914 09b Wood Pellets extract. plant Biomass CHP - extraction - wood pellets - large Energy/technical data Cv coefficient (50°C/100°C) NaN NaN I NaN upper 2050 0.15\n", + " ws Technology cat par unit priceyear note ref est year val\n", + "5683 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2015 0.18\n", + "5684 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2020 0.18\n", + "5685 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2030 0.19\n", + "5686 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN ctrl 2050 0.18\n", + "5687 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2020 0.18\n", + "5688 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN lower 2050 0.18\n", + "5689 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2020 0.19\n", + "5690 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cb coefficient (40°C/80°C) NaN NaN NaN NaN upper 2050 0.19\n", + "5699 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2015 1\n", + "5700 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2020 1\n", + "5701 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2030 1\n", + "5702 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN ctrl 2050 1\n", + "5703 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2020 1\n", + "5704 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN lower 2050 1\n", + "5705 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2020 1\n", + "5706 09b Wood Pellets, Small Biomass CHP - boiler - wood pellets - small Energy/technical data Cv coefficient (40°C/80°C) NaN NaN I NaN upper 2050 1\n" + ] + } + ], + "source": [ + "# Initiate class\n", + "td = TechData(path='files')\n", + "\n", + "# Download electricity and district heating catalogue\n", + "td.download_catalogue('el_and_dh', save_to_folder='files')\n", + "\n", + "# Load it\n", + "df = td.load('el_and_dh')\n", + "\n", + "# Get Cb and Cv coefficients from biomass technologies\n", + "df = (\n", + " df.query('Technology.str.contains(\"Biomass\")')\n", + ")\n", + "for tech in ['back pressure', 'extraction', 'boiler']:\n", + " temp = (\n", + " df.query(\"Technology.str.contains(@tech)\")\n", + " .query(\"par.str.contains('Cb') or par.str.contains('Cv')\")\n", + " )\n", + " print(temp.to_string())" + ] } ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "pybalmorel", "language": "python", "name": "python3" }, diff --git a/src/pybalmorel/__init__.py b/src/pybalmorel/__init__.py index 8022d51..167df1b 100644 --- a/src/pybalmorel/__init__.py +++ b/src/pybalmorel/__init__.py @@ -1,4 +1,4 @@ from . import formatting, utils -from .classes import IncFile, MainResults, Balmorel, GUI +from .classes import IncFile, MainResults, Balmorel, GUI, TechData -__all__ = [IncFile, MainResults, Balmorel, GUI] +__all__ = [IncFile, MainResults, Balmorel, GUI, TechData] From 33be79b2f89f3a685048aa6780373a85cf60f7cb Mon Sep 17 00:00:00 2001 From: Mathias157 Date: Wed, 13 Nov 2024 15:23:24 +0100 Subject: [PATCH 4/4] Release 0.4.4 with functions for downloading DEA technology catalogues --- docs/examples/preprocessing.md | 17 ++++++++++++++++- docs/get_started/installation.md | 2 +- environment.yaml | 2 +- pyproject.toml | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/examples/preprocessing.md b/docs/examples/preprocessing.md index e3b5dd1..f8ef03a 100644 --- a/docs/examples/preprocessing.md +++ b/docs/examples/preprocessing.md @@ -61,4 +61,19 @@ The video below illustrates how it works. :width: 100% :align: center How to use the 'geofilemaker' GUI. -::: \ No newline at end of file +::: + +## Downloading Technology Catalogues + +The technology catalogues from the Danish Energy Agency are useful and streamlined data inputs for energy system modelling. The function below will check if the electricity and district heating technology catalogue exists in the specified path (the working directory in this case) and download it if it does not exist in the path: + +```python +from pybalmorel import TechData + +TD = TechData(path='.') +print('Available technology catalogues: ', list(TD.files.keys())) + +TD.download_catalogue('el_and_dh') +``` + +Note that [TechData.download_all_catalogues](https://balmorelcommunity.github.io/pybalmorel/autoapi/pybalmorel/classes/index.html#pybalmorel.classes.TechData.download_all_catalogues) will look for or try to download all catalogues. \ No newline at end of file diff --git a/docs/get_started/installation.md b/docs/get_started/installation.md index c8daeff..55afc70 100644 --- a/docs/get_started/installation.md +++ b/docs/get_started/installation.md @@ -21,6 +21,6 @@ dependencies: - ipykernel>=6.29.5 - pip - pip: - - pybalmorel==0.4.3 + - pybalmorel==0.4.4 ``` diff --git a/environment.yaml b/environment.yaml index d5fbd6d..f000a90 100644 --- a/environment.yaml +++ b/environment.yaml @@ -12,4 +12,4 @@ dependencies: - pytest=8.3.3 - pip - pip: - - pybalmorel==0.4.3 + - pybalmorel==0.4.4 diff --git a/pyproject.toml b/pyproject.toml index 968ccbc..37aa194 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pybalmorel" -version = "0.4.3" +version = "0.4.4" maintainers = [ { name="Mathias Berg Rosendal", email="mathiasros@gmail.com"}, { name="Théodore Le Nalinec"},