Skip to content

Commit

Permalink
example sections to the main body of data.R file
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandari committed Jul 13, 2023
1 parent 95a87af commit f3c9ee7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
#'
#' # Get summary info
#' example_scan
#'
#' ## example_scan was created with:
#' # pvolfile <- system.file("extdata", "volume.h5", package = "bioRad")
#' # pvol <- read_pvolfile(pvolfile)
#' # example_scan <- pvol$scans[[1]]
#' # save(example_scan, file = "data/example_scan.rda")
"example_scan"

#' Vertical profile (`vp`) example
Expand All @@ -36,11 +30,6 @@
#'
#' # Get summary info
#' example_vp
#'
#' ## example_vp was created with:
#' # vpfile <- system.file("extdata", "profile.h5", package = "bioRad")
#' # example_vp <- read_vpfiles(vpfile)
#' # save(example_vp, file = "data/example_vp.rda")
"example_vp"

#' Time series of vertical profiles (`vpts`) example
Expand All @@ -58,15 +47,26 @@
#'
#' # Get summary info
#' example_vpts
#'
#' ## example_vpts was created with
#' # vptsfile <- system.file("extdata", "vpts.txt.zip", package = "bioRad")
#' # utils::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
#' # 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")
"example_vpts"

## example_scan was created with:
# pvolfile <- system.file("extdata", "volume.h5", package = "bioRad")
# pvol <- read_pvolfile(pvolfile)
# example_scan <- pvol$scans[[1]]
# save(example_scan, file = "data/example_scan.rda")

## example_vp was created with:
# vpfile <- system.file("extdata", "profile.h5", package = "bioRad")
# example_vp <- read_vpfiles(vpfile)
# save(example_vp, file = "data/example_vp.rda")

## example_vpts was created with
# vptsfile <- system.file("extdata", "vpts.txt.zip", package = "bioRad")
# utils::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
# 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")

0 comments on commit f3c9ee7

Please sign in to comment.