Provides parametric functions that describe different types of advection fields.
advectionF(id,...)
Arguments
id: advection type id (uniform, rotation, spiral, spiralCE, radial, and hyperbolic)
...: other arguments (vector of coordinates and parameters of advection field functions)
Examples
library(ggquiver)library(ggplot2)## specify coordinatesm =25aux <- seq(0, m -1, length = m)coord <- expand.grid(aux, aux)## get the advection fieldaf <- advectionF('spiral', spacepoints = coord, x0 = floor(m /2), y0 = floor(m /2), a =3, b =2, rotation =1)## visualize advection fielddta <- data.frame(lon = coord[,1], lat = coord[,2], u = af[,1], v = af[,2])ggplot(dta, aes(x = lon, y = lat, u = u, v = v))+geom_quiver()+theme_light()
References
Papalexiou, S.M., Serinaldi, F., Porcu, E. (2021). Advancing Space-Time Simulation of Random Fields: From Storms to Cyclones and Beyond. Water Resources Research, 57, e2020WR029466, tools:::Rd_expr_doi("10.1029/2020WR029466")