Commit 383615f
feat: add river-water and sea-water sourced heat pumps (#1618)
* feat: add river-water and sea-water heat pumps
* remove obsolete modules
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: add copernicusmarine to envs
* feat: Add option to disable progress bar in seawater data retrieval script
* fix: Ensure temperature difference is non-negative in heat flow calculation
* fix: Impose cut-off temperature for sea water heat
* feat: Add temporal aggregation for river and sea water heat potential calculations as outputs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore: Add SPDX license identifiers to surface water heat potential scripts
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: Use no-verbose mode for wget when retrieving hera data
* fix: typos
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: update chunking parameters for river and ambient temperature datasets to surpress warnings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* doc:: update data bundle docs to include Copernicus seawater temperature dataset with source and licensing information
* refactor: update seawater temperature data path to bundle, add file to bundle retrieval and remove unused retrieval script
* feat: update seawater data retrieval
* fix: import shapely correctly in sea_water_heat_approximator.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: streamline temporal aggregate merging
* feat: add heat source mapping functionality and ambient air temperature processing
* fix: correct region geometry buffering in SeaWaterHeatApproximator
* feat: enhance heat source map with aggregation options for temperature and energy
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: remove seawater temperature data file from databundle retrieval
* fix: update seawater temperature data source and improve region geometry handling
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: add rule and script for plotting coefficient of performance (COP) profiles of heat pumps
* fix: correct import paths for HeatSector and HeatSystemType in heat_system.py
* fix: update output paths for COP profiles to use 'graphs' directory
* feat: enhance COP data preparation to support multiple heat system types and improve plotting functionality
* refactor: streamline COP data preparation and enhance interactive plotting functionality
* feat: add region_dim parameter to prepare_cop_data function for enhanced flexibility
* fix: improve validation for regions_onshore and enhance aggregate_type handling in plot_heat_source_map function
* feat: add region_dim parameter to create_interactive_cop_plot function for improved region filtering
* feat: add rules for bus carrier dispatch and annual energy balance plots in Snakemake workflow
* refactor: update output paths for bus carrier dispatch plots and adjust memory resources in postprocess rules
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* use absolute imports (#1643)
* use absolute imports
* add release note
* fix typo
* Non-sequestered HVC Waste Allocation According to Population (#1625)
* non-sequestered HVC waste allocation according to population
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* adding release note and correcting link efficiencies
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* moving locations of non-sequestered hvc to 'spatial' variable
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
Co-authored-by: Micha <michaellindner@posteo.de>
* fix: update fallback value for unusable water temperature from absolute zero to -1e9
* feat: enhance water heat potential models and improve data handling
- Added district heating area buffer configuration in config.default.yaml
- Updated plotting.default.yaml to include river and sea water heat sources
- Enhanced build_sector.smk to incorporate district heating area data
- Introduced retrieve_dh_areas rule in retrieve.smk for fetching district heating areas
- Refactored river_water_heat_approximator.py and sea_water_heat_approximator.py for improved data validation and processing
- Modified build_river_water_heat_potential.py and build_sea_water_heat_potential.py to handle district heating areas
- Improved plot_heat_source_map.py for better data filtering and error handling
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: correct unit in heat power calculation
* feat: clip COP bewlow 1 to 0
* refactor: simplify cop profile plotting
* refactor: streamline heat source retrieval and improve plot info
* refactor: simplify plot_bus_carrier_dispatch
* refactor: enhance plot_bus_carrier_dispatch with bus name pattern and output directory
* refactor: rename plot_bus_carrier_dispatch to plot_interactive_bus_balance and update output paths
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: reorder import statements for clarity
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: clean up whitespace in create_interactive_cop_plot function
* feat: remove sea-water by default but add heat pump sources sea-water and geothermal to myopic, overnight, and perfect test configuration files
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: update limited heat sources in sector.csv to include river_water and clarify data source requirements
* refactor: remove outdated reference to heat_demand in data-retrieval.rst
* doc: update release notes
* doc: add interactive bus plotting to docs and test config
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: simplify output directory structure for heatmap timeseries in rule all
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update scripts/build_cop_profiles/BaseCopApproximator.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update scripts/build_ambient_air_temperature_yearly_average.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update rules/build_sector.smk
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update rules/build_sector.smk
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: correct formatting of limited_heat_sources description in sector.csv
* refactor: remove redundant comments and clean up coefficient of performance calculation
* fix: update input_heat_source_temperature function to include 'ptes' in replace_names and adjust resource references
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: update input_heat_source_temperature and related rules for ptes naming conventions and output formatting
* fix: add plotly dependency to environment.yaml and linux-pinned.yaml
* fix: update bus_name_pattern in plotting configuration to None
* fix: update bus_name_pattern in plotting configuration to None
* compress hera data after download
* use curl instead of wget and nccopy
* refactor: revert back to uncompressed wget
* bugfix: add existing renewables consistent with renewable_carriers list (#1717)
* feat: include existing capacities only for included renewable carriers
* bugfix: only add solar rooftop in distribution grid when solar included in config
* revert mock snakemake changes
* refactor: change to if not continue style to reduce diff
* Add offwind float to CCL (#1725)
* Fix: Invalid aquifer shapes in build_ates_potentials (#1724)
* fix: ensure aquifer geometries are valid in build_ates_potentials.py
* fix: add release note for fixing invalid aquifer shape geometries in build_ates_potentials.py
* feat: use bundle hera data for test cutout
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: pass heat_pump_cop_approximation configs correctly (#1729)
* fix: forward heat_pump_cop_approximation config to CentralHeatingCopApproximator
* refactor: set correct heat source for ptes boosting and include titel/link to source for min_delta_t_lift
---------
Co-authored-by: Amos Schledorn <60692940+amos-schledorn@users.noreply.github.com>
* Fix ``plot_hydrogen_network`` : storage + Added CCL explantions in the configtables (#1727)
* Add offwind float to CCL
* Update plot_hydrogen_network.py
Fix the code to plot the storage
* Update release_notes.rst
* Update solving.csv
Add precision for the CCL constraint (not working with a time resolution higher than 1h) + add indication on how to use agg_p_nom_limits
* fix: update method call to use 'cop()' instead of 'approximate_cop()' in get_cop function
* fix: remove unnecessary parentheses in cop() method call in get_cop function
* fix: update retrieve_hera_data rule to use config_provider for snapshot year in output paths
* fix: update retrieve_hera_data rule to use snapshot_year directly in output paths
* feat: introduce dh_area building and improve handling of missing dh_area countries
* update config
* doc: improve comments
* update gitignore
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat:improve performance
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix:p_max_pu and p_nom_max for geothermal heat source
* fix: update heat source handling in add_heat function
* fix: remove unused heat pump sources from configuration
* fix: add shipping sector and update zero cost settings for heat sources
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* doc:update release notes and docs
* fix: enable CO2 sequestration potential check in add_co2_tracking function
* refactor: type hints and improved documentation
* refactor: enhance type hints and improve documentation in SurfaceWaterHeatApproximator
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update config
* feat: reintroduce default target for the 'all' rule
* refactor: update default parameters in RiverWaterHeatApproximator
* fix: correct snapshot retrieval method in retrieve.smk
* fix: improve handling of zero-cost heat sources in add_heat function
* fix: update mock_snakemake call to use correct script name for sea heat potential
* fix: correct default_target case in all rule and refactor snapshot_year assignment
* fix: ensure temporal aggregate is only deleted when generated in get_regional_result function
* fix: fix static config handling
* fix: update default min_outlet_temperature in RiverWaterHeatApproximator to 1C
* fix: update input parameters for build_river_heat_potential rule and correct mock_snakemake call
* feat: wrap heat_source_map output into input function
* fix: remove comment from generate_temporal_aggregates in plotting configuration
* Revert "feat: wrap heat_source_map output into input function"
This reverts commit e6306ca.
* fix: update heat source map configuration references in Snakefile and plotting defaults
* Update doc/configtables/sector.csv
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* fix:only plot heat source maps for activated heat pump sources
* fix: correct description for enabling temporal aggregate maps for heat sources
* fix:activate interactive_bus_balance ("*central heat*") in test configs
* fix: improve warning message for missing heat source cost data
* fix: replace print statements with logger for missing countries handling
* fix: add bokeh and folium to environment dependencies
* fix: update heat source map configuration for river, sea, and ambient air sources
* fix: heat pump sources in test configs
* fix: update heat source map configuration to use 'air' instead of 'ambient_air'
* fix: update docstring formatting for RiverWaterHeatApproximator class
* fix: update URLs for river discharge and ambient temperature data to V2
* fix: simplify power calculation constants in SurfaceWaterHeatApproximator
* fix:cosmetic updates
* Update doc/configtables/plotting.csv
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* Update doc/configtables/sector.csv
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* fix: update interactive bus balance configuration in plotting.csv
* fix: update release notes
* fix: remove unused dynamic inputs for hera data retrieval
* fix: rename generate_temporal_aggregates to enable_heat_source_maps
* Update rules/retrieve.smk
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
* fix: update thread configuration for build_river_heat_potential rule
* fix: update HERA data retrieval URLs to version 1.0
* fix: improve readability of input_heat_source_temperature function
* fix:use move/storage + year wildcard in hera data retrieval
* fix: update pypsa version to 0.33.0 in environment.yaml
* fix: pypsa options usage
* fix: pin `pypsa>=0.34.0`
* Update locked environment files for all platforms (#1832)
Co-authored-by: lkstrp <62255395+lkstrp@users.noreply.github.com>
* feat: support multi-year snapshots
* fix:re-add ptes temperature to build_cop_profiles rule
* fix: update output filenames for ptes direct utilisation and temperature profiles
* fix: update output filename for ptes direct utilisation profiles to include 's_' prefix
* fix: correct indentation for hydrogen_turbine in sector configuration
* feat: automate seawater temperature retrieval for custom weather years
* refactor:simplify weather data handling through xr.open_mfdataset
* feat: add rule to retrieve seawater temperature for 2013 and improve error handling in retrieval script
* fix: update output file naming conventions in ptes operations
* feat: enhance documentation and type hints in data retrieval and plotting scripts
* fix: update output filename for ptes direct utilisation profiles to include 'base'
* feat: conditionally define seawater temperature retrieval rules based on default cutout configuration
* fix: rename seawater temperature retrieval rule for 2013
* fix: update seawater temperature output filename to reflect 2013 data
* fix: update seawater temperature output filename for test cutout
* fix: update seawater temperature data for test cutout
* fix: update seawater temperature file references to 2013 data
* fix: update seawater temperature references for test cutout
* fix: streamline seawater temperature retrieval for test cutout and enhance logging
* fix: remove benchmark logging for seawater temperature retrieval
* feat: rename build_cop_approximator submodules to snakecase
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Resolve merge conflicts
* refactor: update district heating area configuration and improve heat pump cost handling
* fix: update rule name in mock_snakemake for testing in build_dh_areas script
* refactor: remove unnecessary comment to avoid circular imports in input_hera_data function
* refactor: update docstring for RiverWaterHeatApproximator to clarify parameters
* refactor: clarify parameters in docstring for RiverWaterHeatApproximator
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Lukas Trippe <lkstrp@pm.me>
Co-authored-by: Toni <153275395+toniseibold@users.noreply.github.com>
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
Co-authored-by: Micha <michaellindner@posteo.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Daniel Rüdt <117752024+daniel-rdt@users.noreply.github.com>
Co-authored-by: JuliaSvn <144602424+JuliaSvn@users.noreply.github.com>
Co-authored-by: TomKae00 <144129436+TomKae00@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lkstrp <62255395+lkstrp@users.noreply.github.com>1 parent 4a0ac92 commit 383615f
File tree
35 files changed
+3737
-71
lines changed- config
- test
- doc
- configtables
- envs
- rules
- scripts
- build_cop_profiles
- build_surface_water_heat_potentials
- approximators
- definitions
- plot_cop_profiles
35 files changed
+3737
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
146 | 220 | | |
147 | 221 | | |
148 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
| |||
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
| 551 | + | |
| 552 | + | |
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
556 | 560 | | |
557 | 561 | | |
558 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
461 | 468 | | |
462 | 469 | | |
463 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
58 | 61 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments