Example of a vpts
object with name example_vpts
.
example_vpts
An object of class vpts
of dimension 1934 x 25 x 15.
# Reload example_vpts from package (e.g. in case it was altered)
data(example_vpts)
# Get summary info
example_vpts
#> Irregular time series of vertical profiles (class vpts)
#>
#> radar: KBGM
#> # profiles: 1934
#> time range (UTC): 2016-09-01 00:02:00 - 2016-09-10 11:56:00
#> time step (s): min: 180 max: 16320
# example_vpts was created with
# \dontrun{
vptsfile <- system.file("extdata", "vpts.txt.zip", package = "bioRad")
unzip(vptsfile, exdir = (dirname(vptsfile)), junkpaths = TRUE)
vptsfile <- substr(vptsfile, 1, nchar(vptsfile) - 4)
example_vpts <- read_vpts(vptsfile, radar = "KBGM", wavelength = "S")
rcs(example_vpts) <- 11
#> Warning: Threshold for `sd_vvp` not set, defaulting to 2 m/s.
sd_vvp_threshold(example_vpts) <- 2
example_vpts$attributes$where$lat <- 42.2
example_vpts$attributes$where$lon <- -75.98
save(example_vpts, file = "data/example_vpts.rda", compress = "xz")
#> Warning: cannot open compressed file 'data/example_vpts.rda', probable reason 'No such file or directory'
#> Error in xzfile(file, "wb", compression = 9): cannot open the connection
# }