pvol
), scan (scan
) or parameter
(param
)R/get_elevation_angles.R
get_elevation_angles.Rd
Returns the elevation angles in degrees of all scans within a polar volume
(pvol
) or the elevation angle of a single scan (scan
) or scan parameter
(param
).
get_elevation_angles(x)
# S3 method for pvol
get_elevation_angles(x)
# S3 method for scan
get_elevation_angles(x)
# S3 method for param
get_elevation_angles(x)
A pvol
, scan
or param
object.
The elevation angle(s) in degrees.
# Locate and read the polar volume example file
pvolfile <- system.file("extdata", "volume.h5", package = "bioRad")
example_pvol <- read_pvolfile(pvolfile)
# Get the elevations angles of the scans in the pvol
get_elevation_angles(example_pvol)
#> [1] 0.5 1.5 2.5
# Extract the first scan
scan <- example_pvol$scans[[1]]
# Get the elevation angle of that scan
get_elevation_angles(scan)
#> [1] 0.5