Description Usage Arguments Value Examples
The function dt.to.brick
transforms a data.table object to brick (raster) format
1 | dt.to.brick(dt, var_name)
|
dt |
The data table object to be transformed. It must be in a four-column format, with the coordinate columns named as "lat" & "lon" and time values as "time". |
var_name |
The name (chr) of the column in the data table ( |
dt
as a brick object.
1 2 3 4 5 | aa <- expand.grid(lat = seq(40, 50, 1),
lon = seq(20, 30, 1),
time = seq(1900, 2000, 1))
aa$anomaly = rnorm(nrow(aa))
aa <- brick(dt.to.brick(aa, "anomaly"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.