Learn R Programming

bioRad (version 0.5.1)

get_elevation_angles: Get elevation angles of a polar volume (pvol) or scan (scan)

Description

Gives the elevation angle of a single scan, or the elevation angles of all scans within a polar volume

Usage

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)

Arguments

x

A pvol or scan object.

Value

elevation in degrees

Methods (by class)

  • pvol: Elevation angles of all scans in a polar volume.

  • scan: Elevation angle of a scan.

  • param: Elevation angle of a scan parameter.

Examples

Run this code
# NOT RUN {
# load a polar volume
pvolfile <- system.file("extdata", "volume.h5", package = "bioRad")
example_pvol <- read_pvolfile(pvolfile)

# elevations for the scans in the volume
get_elevation_angles(example_pvol)

# extract the first scan:
scan <- example_pvol$scans[[1]]

# elevation angle of the scan:
get_elevation_angles(scan)
# }

Run the code above in your browser using DataLab