Learn R Programming

RTOMO (version 1.1-3)

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

Description

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

Usage

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

See Also

get3Drayblox

Examples

Run this code

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)


Run the code above in your browser using DataLab