Learn R Programming

LICORS (version 0.2.0)

get_LC_config: Get configuration of a light cone (LC)

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

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab