Learn R Programming

bioRad (version 0.4.0)

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
pvol <- system.file("extdata", "volume.h5", package = "bioRad")
vol <- read_pvolfile(pvol)
# elevations for the scans in the volume
get_elevation_angles(vol)
# extract the first scan:
scan <- vol$scans[[1]]
# elevation angle of the scan:
get_elevation_angles(scan)
# }

Run the code above in your browser using DataLab