Heating, Ventilation, and Air Conditioning (HVAC) systems are the greediest energy-consuming devices in most buildings. So having a national 7-day forecast of how much energy those buildings’ HVAC systems are likely to expend is a very valuable tool for predicting energy loads by geographic region.
Knowing that energy usage forecasts are directly related to temperature forecasts, I can estimate heating and cooling load by using a concept called heating and cooling degree days, also known as heating-degree-hours (HDH) and cooling-degree-hours (CDH).
The idea is fairly simple. We assume a comfortable temperature, which we call the balance point, and see how far the forecast temperature will be from that balance point. The number of degrees that the forecast temperature point falls below the balance point, we call heating degrees. Similarly, the number of degrees that the forecast temperature is above the balance point, we call cooling degrees. In both cases, we disallow negative degree-hours, such that there will always be zero or more HDHs and CDHs. In practice, choosing the right balance point can be tricky. For the sake of this exercise, we'll use 16°C.
This direct correlation between temperature and degree hours could of course be treated more rigorously. To delve deeper in the implementation details, the complexity of this problem and important caveats that surround it, READ MORE HERE.»
Using weather forecast data from the National Digital Forecast Database (NDFD), I'm able to implement the CDH/HDH balance-point algorithm for the continental United States, and plot the 7-day heating and cooling load forecast. In this implementation, positive degree-hours denote heating and negative degree-hours denote cooling, which facilitates a plot that includes both metrics in a single view.
Caveats:
Given more time, I would implement more nuanced methods to represent the complex relationship between degree-hours and weather forecast. Several important issues would be top-of-mind as I expanded my analysis:
You can view the source at yoni/load-forecast. Tools and APIs included:
DESCRIPTION
file under the R package root.
gdal
-- Geospatial Data Abstraction Library. Backs the rgdal
R package, which is used to
load and plot weather forecast data.
ffmpeg
-- used to generate the MPEG animated forecast.
ImageMagick
-- used to generate the GIF and MPEG animated forecasts.
Panoply
-- an excellent tool built by NASA. Used to explore raw
GRIB weather forecast data.
In the plots below, the blue areas represent locations where we forecast larger cooling loads, whereas the red areas represent forecasted heating loads. Zero and near-zero loads are represented by white hues.
The color scheme ranges from the highest Cooling Degree Hours (CDH) in dark blue to the highest Heating Degree Hours (HDH) in dark red.