Skip to contents

Convert daily climate projections to hourly time-step

Usage

daily_to_hourly(df, latitude, longitude)

Arguments

df

data frame output by get_climate_projections() that has daily values for the variable

latitude

latitude degree north

longitude

longitude degree east

Value

data frame with an hourly time step

Examples

if (FALSE) { # interactive()
get_climate_projections(
latitude = 37.30,
longitude = -79.83,
start_date = Sys.Date(),
end_date = Sys.Date() + lubridate::years(1),
model = "EC_Earth3P_HR",
variables = glm_variables(product = "climate_projection", time_step = "daily")) |>
daily_to_hourly(latitude = 37.30, longitude = -79.83)
}