as_synoptReg | R Documentation |
Convert a SpatRaster from the terra package to a data.frame formatted in the way required by synoptReg .
as_synoptReg(x)
x |
SpatRaster time series containing the atmospheric data (e.g. mean sea level pressure). |
A data.frame with the following variables: x, y, time, value, var, units
read_nc
# Load data
slp_file <- system.file("extdata", "mslp_ei.nc", package = "synoptReg")
# Reading data
slp <- read_nc(slp_file)
# Converting it to the required structure by synoptReg
slp_df <- as_synoptReg(slp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.