View source: R/exposure_indicators.R
| exposure_indicators | R Documentation |
Summarizes daily temperature (and optionally humidity) into heat exposure indicators per location and year or month, as used in heat-health vulnerability indices: heatwave and warm-night frequency and duration, diurnal temperature range, WBGT, heat index and wet-bulb temperature, plus the ETCCDI indices TX90p, TN90p, WSDI and tropical nights.
exposure_indicators(
data,
by = c("latitude", "longitude"),
period = c("year", "month"),
months = NULL,
baseline = c(1991, 2020),
heatwave_method = c("imd", "percentile", "ehf"),
warm_night_method = c("imd", "percentile", "absolute"),
terrain = c("auto", "plains", "coastal", "hilly"),
hill_elevation = 1200,
cell_size = NULL
)
data |
A data.frame of daily values; see Details. |
by |
Columns identifying a location, or |
period |
Summarize by |
months |
Months (1-12) to include, e.g. |
baseline |
Climatology years, |
heatwave_method |
Passed to |
warm_night_method |
Passed to |
terrain |
Passed to |
hill_elevation, cell_size |
Passed to |
data needs columns date, tmax and tmin (degrees Celsius), one row
per day per location, covering the baseline years. With a dewpoint
column (degrees Celsius), afternoon humidity metrics are computed from
tmax and dewpoint: WBGT by wbgt_simple(), heat index and wet-bulb
temperature. A wbgt column, such as daily maxima of wbgt_liljegren(),
replaces the wbgt_simple() estimate.
Spells are found on the full series, so a heatwave spanning two periods
counts as an event in the period where it starts and its days count where
they fall. months filters the summary.
A data.frame with one row per location and period and columns:
days with data
mean daily maximum and minimum temperature
mean diurnal temperature range (ETCCDI DTR)
days with Tmax of at least 40 C
nights with Tmin above 20 C (ETCCDI TR)
percent of days above the calendar-day 90th percentile of Tmax and Tmin
days in runs of at least 6 days with Tmax above its 90th percentile (ETCCDI WSDI)
heatwave
duration (total days), frequency (events starting in the period), longest event and
severe days, from heatwave_days()
the same
for warm_nights()
With humidity: wbgt_mean, wbgt_max, wbgt_days_high (WBGT of at
least 29.4 C, 85 F) and wbgt_days_extreme (at least 31.1 C, 88 F),
heat_index_max, heat_index_days_danger (at least 39.4 C, 103 F),
wet_bulb_max and wet_bulb_days_31 (wet bulb of at least 31 C, near the
30.55 C mean critical limit of Vecellio et al. 2022).
Vecellio, D.J., Wolf, S.T., Cottle, R.M. & Kenney, W.L. (2022). Evaluating the 35 C wet-bulb temperature adaptability threshold for young, healthy subjects (PSU HEAT Project). Journal of Applied Physiology, 132(2), 340-345. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1152/japplphysiol.00738.2021")}
imd_exposure_bbox() to download IMD data and compute these in one
call; ndvi() and ndbi() for the land-surface indicators.
d <- seq(as.Date("2001-01-01"), as.Date("2004-12-31"), by = "day")
doy <- as.POSIXlt(d)$yday
tmax <- 33 + 8 * sin(2 * pi * (doy - 80) / 365)
tmax[d >= as.Date("2004-05-10") & d <= as.Date("2004-05-14")] <- 46.5
daily <- data.frame(date = d, tmax = tmax, tmin = tmax - 13, dewpoint = 18)
exposure_indicators(daily, by = NULL, baseline = c(2001, 2003), terrain = "plains")
# Jaipur: terrain looked up from the coordinates
daily$latitude <- 26.9
daily$longitude <- 75.8
exposure_indicators(daily, baseline = c(2001, 2003))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.