Pietro Zambelli committed Feb 13, 2022 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # CORDEX Heating and Coooling Degree Days for Europe This repository publish a data set of the Heating Degree Days (HDDs) and Cooling Degree Days (CDDs) derived from the [EURO-CORDEX](https://euro-cordex.net/) simulation datasets. The cordex dataset provide a set of simulations with the daily min and max temperature of the historical (1971) and future simulations (2136). The heating degree days (HDD) and the cooling degree days (CDD), computed using different base temperatures, are calculated using the daily dataset. The HDD and CDD are essential parameters to assess the energy demand of different building typologies and uses. The outputs are a raster map of the user-selected area with the mean HDD and CDD values and a graph showing the value ranges extracted from the simulations ensemble. To produce the HDDs and CDDs available on this repository we used the EURO-CORDEX simulation ensemble at 0.11 degrees of spatial resolution from historical and future scenarios, under different assumptions of [Representative Concentration Pathway (RCP)](https://en.wikipedia.org/wiki/Representative_Concentration_Pathway) of: - evaluation - historical - RCP4.5 and - RCP8.5 We analyzed and processed 297 simulations using different regional and local models and boundary conditions. The values returned to the user are the statical values extracted from the whole set of simulations. We used min and max daily simulations to compute the daily heating degree days (HDD) with:  Pietro Zambelli committed Feb 13, 2022 21 math  Pietro Zambelli committed Feb 13, 2022 22 23 24 25 26 27 28 29  HDD(T_{min}, T_{max}, T_{base})= \begin{cases} 0, & \text{if } T_{min} > T_{base} \\ \frac{T_{base} - T_{min}}{4}, & \text{elif } \frac{T_{max} + T_{min}}{2} > T_{base} \\ \frac{T_{base} - T_{min}}{2} - \frac{T_{max} - T_{base}}{4} , & \text{elif } T_{max} \geq T_{base} \\ T_{base} - \frac{T_{max} + T_{min}}{2} , & \text{elif } T_{max} < T_{base} \\ 0 , & \text{else} \\ \end{cases}  Pietro Zambelli committed Feb 13, 2022 30   Pietro Zambelli committed Feb 13, 2022 31   Pietro Zambelli committed Feb 13, 2022 32 with $T_{min}$ and $T_{max}$ that are the daily min and max temperatures. $T_{base}$ is the base temperature.  Pietro Zambelli committed Feb 13, 2022 33   Pietro Zambelli committed Feb 13, 2022 34 math  Pietro Zambelli committed Feb 13, 2022 35 36 37 38 39 40 41 42  CDD(T_{min}, T_{max}, T_{base})= \begin{cases} 0, & \text{if } T_{max} < T_{base} \\ \frac{T_{max} - T_{base}}{4}, & \text{elif } \frac{T_{max} + T_{min}}{2} < T_{base} \\ \frac{T_{max} - T_{base}}{2} - \frac{T_{base} - T_{min}}{4} , & \text{elif } T_{min} \leq T_{base} \\ \frac{T_{max} + T_{min}}{2} - T_{base} , & \text{elif } T_{min} > T_{base} \\ 0 , & \text{else} \\ \end{cases}  Pietro Zambelli committed Feb 13, 2022 43   Pietro Zambelli committed Feb 13, 2022 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76  # How to Contribute This repository contains the data produced by the analysis and the code used to generate the [datapackage.json](datapackage.json) file. All the code to perform the data preocessing is available in this dedicated repository: [cordex-hdd-cdd](https://gitlab.inf.unibz.it/enermaps/cordex-hdd-cdd/). If you find any issues or if you have an idea on how to improve the data repository please feel free to open an [issue](https://gitlab.inf.unibz.it/URS/enermaps/hdd-cdd/-/issues). If you want to fix something or contribute please feel free toopen a Pull Request. The following commands must be run only the first time to setup the work environment. Create a virtual environemnt with: python3 -m venv venv Activate the venv with source venv/bin/activate. Upgrade pip with: pip install --upgrade pip Install the required packages: pip install -r scripts/requirements.txt Install the development packages with: pip install --upgrade -r scripts/requirements-dev.txt Now activate the pre-commit hooks with: pre-commit install