Get configuration of a light cone (LC)

Share:

Description

get_LC_config obtains the PLC or FLC at a particular (\mathbf{r}, t) from a (N+1)D field based on the LC template from compute_LC_coordinates (or setup_LC_geometry).

Usage

1
get_LC_config(coord, field, LC.coordinates)

Arguments

coord

space-time coordinate (\mathbf{r}, t)

field

spatio-temporal field; either a matrix or a 3-dimensional array with time t as the first coord, and the spatial coords in order. Make sure to see also compute_LC_coordinates for correct formatting.

LC.coordinates

template coords for the LC

See Also

compute_LC_coordinates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
AA <- matrix(rnorm(40), ncol = 5)
image2(AA)
LCind <- compute_LC_coordinates(speed = 1, horizon = 1, shape = "cone")
AA
get_LC_config(cbind(5, 2), AA, LCind)
# a time series example
data(nhtemp)
xx <- c(nhtemp)
LCind <- compute_LC_coordinates(speed = 1, horizon = 4, shape = "cone", space.dim = 0)
cc <- get_LC_config(6, xx, LCind)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.