Description Usage Arguments Value Examples
This function applies the approach: "circulation types to environment".
1 |
x |
data.frame. A data.frame containing the environmental data (i.e. precipitation, temperature, PM10, etc.) with the following variables: |
clas |
data.frame. A data.frame of the synoptic classification (time and WT) obtained from the |
fun |
function. A function to be applied to the environmental variable for each WT. |
out |
character. Choose between |
a data.frame or a Raster Stack containing the environmental grids based on the weather types.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Load data (mslp or precp_grid)
data(mslp)
data(z500)
# Tidying our atmospheric variables (500 hPa geopotential height
# and mean sea level pressure) together.
# Time subset between two dates
atm_data1 <- tidy_nc(x = list(mslp,z500),
name_vars = c("mslp","z500"))
# S-mode classification
smode_clas <- synoptclas(atm_data1, ncomp = 6)
# ct2env (precipitation example)
ct2env(x = pcp, clas = smode_clas$clas, fun = mean, out = "data.frame")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.