| weather_data {ResidentialEnergyConsumption} | R Documentation |
Weather data from one measuring station.
Description
Weather data from a weather station in a central location of the study region. The data contains hourly measurements over a period of ten weeks, similar to the time span of the dataset *elcons_15min*. Weather data are averaged across all available weather stations in the study area for each unit of time.
Usage
weather_data
Format
A data frame with the following of variables:
DATE_CETThe date and time of the weather observation in Central European Time
WEEKWeek of the year as decimal number (00–53) using Monday as the first day of week
WIND_DIRECTIONWind direction in compass degrees. *NA* when air is calm (no wind speed)
CLOUD_CEILINGLowest opaque layer with 5/8 or greater coverage
SKY_COVERSky cover: CLR-clear, SCT-scattered (1/8 to 4/8), BKN-broken (5/8 to 7/8), OVC-overcast, OBS-obscured, POB-partial obscuration
VISIBILITYVisibilityin statute miles (rounded to nearest tenth)
TEMPTemperature measured in fahrenheit
SEA_LEVEL_PRESSURESea level pressure measured in millibars (rounded to nearest tenth)
STATION_PRESSUREStation pressure measured in millibars (rounded to nearest tenth)
PCP011-hour liquid precip reportin inches and hundredths, that is, the precip for the preceding 1-hour period
WIND_SPEEDWind speed in miles per hour
Details
This data cannot be used or redistributed for commercial purposes. Re-distribution of these data by others must provide this same notification. (see https://www.ncdc.noaa.gov/)
References
NOAA National Centers for Environmental Information (2020)
Examples
data(elcons_15min, weather_data)
#transform 15-minute electricity measurements to hourly consumption values
hourly_cons <- colSums(matrix(t(elcons_15min$w44[1,2:673]), nrow=4))
#select temperature observations for week 44
hourly_temp <- weather_data[weather_data$WEEK==44,"TEMP"]
#compute correlation
cor(hourly_cons, hourly_temp)