get2Drayblox: Get 2D block from model description and ray path

Description Usage Arguments Value Author(s) See Also Examples

Description

Uses x-y coordinates of points to determine the indecies and lengths of rays penetrating the model.

Usage

1
get2Drayblox(x1, y1, x2, y2, xo, yo, NODES = FALSE, PLOT = FALSE)

Arguments

x1

x coordinate of starting block

y1

y coordinate of starting block

x2

x coordinate of ending block

y2

y coordinate of ending block

xo

x block divisions

yo

y block divisions

NODES

logical, whether xo, yo ae nodes or edges

PLOT

logical, TRUE=plot ray

Value

ix

x index

iy

y index

iz

layer index

lengs

length in each block

mids

midpoints of sections

nodes

nodes of a 2D vector representation of layer

LX

x-divisions

LY

y-divisions

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

get3Drayblox

Examples

1
2
3
4
xo = seq(from=0.5, by=1, length=100)
yo = seq(from=0.5, by=1, length=100)

IYZ = get2Drayblox(10, 4, 64, 50, xo, yo , NODES=FALSE, PLOT=FALSE)

RTOMO documentation built on May 2, 2019, 3:35 p.m.