Add hourly heating and cooling degree hours
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Detailed Description
atlite provides Cutout.heat_demand() and Cutout.cooling_demand(), which compute degree days from the daily mean temperature. These work well for daily demand profiles.
I propose adding two complementary functions that compute degree hours from the hourly temperature of the cutout. This gives users an option when they need the variation within a day:
Cutout.heating_degree_hours(threshold=15, a=1, constant=0):max(0, a·(threshold − T)) + constantCutout.cooling_degree_hours(threshold=23, a=1, constant=0):max(0, a·(T − threshold)) + constant
The existing functions stay unchanged. As in the daily functions, the threshold is applied per grid cell before spatial aggregation. All convert_and_aggregate arguments (matrix, layout, shapes, aggregate_time, …) are supported. Defaults mirror the daily functions.
Context
We are planning to add space cooling to PyPSA-Eur. For this, we would need the hourly shape of cooling demand, which typically peaks in the afternoon. Hourly degree hours could be computed in PyPSA-Eur through a custom convert_func, but having them in atlite would make them available to other users and models, for heating as well.
Possible Implementation
Add convert_heating_degree_hours / heating_degree_hours and convert_cooling_degree_hours / cooling_degree_hours to atlite/convert.py, register them on Cutout, and follow the structure of the existing degree-day functions, using hourly instead of daily mean temperature.
An alternative would be a resolution argument (e.g. freq) on the existing functions. Separate functions keep the current API and results as they are.
The threshold stays a user-defined parameter, so it can differ by region or country. Users can aggregate the hourly result to a coarser resolution or smooth it for building thermal inertia afterwards.
A humidity-aware variant could be a follow-up, for example enthalpy-based degree hours using the 2 m dewpoint temperature already available in ERA5 cutouts. This would capture the latent cooling load.
I'm happy to open a PR.
- Lingua principale
- Python
- Stelle
- 416
- Fork
- 136
- Merge medio
- 4g 2h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PyPSA/atlite
-
type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
PyPSA/atlite#551 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Support dataset `Global climate and energy indicators from 1950 to present derived from reanalysis`Forse già presa @jome1 l’ha presa 47 giorni fa. Apertastatus: needs classification type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
PyPSA/atlite#531 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PyPSA/atlite#523 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Appended cutout windspeed for wind turbines yielding to premature cutoffForse già presa @maoji-y l’ha presa 4 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
PyPSA/atlite#522 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PyPSA/atlite
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Rose22/openlumara#166 ·
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement feature/signals self-driving team/self-driving
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PostHog/posthog#144208 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LMPrado-DZ23/open_notas_br#14 ·
I maintainer di solito rispondono entro 1 giorno