Skip to contents

K Index

Usage

K_Index(ta850, ta700, ta500, td850, td700)

Arguments

ta850

air temperature at 850 hPa (K).

ta700

air temperature at 700 hPa (K).

ta500

air temperature at 500 hPa (K).

td850

dew point temperature at 850 hPa (K).

td700

dew point temperature at 700 hPa (K).

Value

the computed K index (K).

References

George, J.J., 1960. Weather Forecasting for Aeronautics. Academic Press, New York. 673 pp.+

Examples

data("ERA5_pl")
ta <- ERA5_pl$ta
hus <- ERA5_pl$hus
# convert to hPa
plev <- ERA5_pl$plev / 100
pa <- convert_plev_to_array(plev, dim(hus))
td <- td_from_hus(hus, pa)

l850 <- which(plev == 850)
l700 <- which(plev == 700)
l500 <- which(plev == 500)
res <- K_Index(
  ta[, , l850, ], ta[, , l700, ],
  ta[, , l500, ], td[, , l850, ],
  td[, , l700, ]
)