vol.sph: Calculates the (volume) size of the spherical volume segment...

View source: R/vol.sph.R

vol.sphR Documentation

Calculates the (volume) size of the spherical volume segment defined by 'r', 'theta' and 'phi'.

Description

Calculates the (volume) size of the spherical volume segment defined by 'r', 'theta' and 'phi'.

Usage

vol.sph(
  r = c(0, 1),
  theta = c(0, 2 * pi),
  phi = c(0, pi),
  var = c("volx", "harx")
)

Arguments

r

is range of radial coordinates, given as a vector of interval values (in which case length(r)-1 spherical segemnts are treated) or as a two column matrix where the first column represents the lower limit of the sperical segments, and the second column represents the upper limit.

theta

is the range of azimuth angles in radians, given in the same way as 'r'.

phi

is the range of elevation angles in radians, given in the same way as 'r.

var

is a vector of the variables to return. Currently implemented are "volx" for volumes of the voxels and "harx" for horizontal area of the voxels.


arnejohannesholmin/echoIBM documentation built on April 14, 2024, 11:37 p.m.