Learn R Programming

RPMG (version 2.2-2)

itoxyz: Vector Index to Matrix Index

Description

Given I index get ix,iy, iz for three dimensional grids.

Usage

itoxyz(i, nx, ny, nz)

Arguments

i

index to long vector

nx

number of blocks in x axis

ny

number of blocks in y axis

nz

number of blocks in z axis (layers)

Value

ix

Index of X-array

iy

Index of Y-array

iz

Index of Z-array (layer)

See Also

xyztoi

Examples

Run this code
# NOT RUN {
 itoxyz(24, 6, 6, 1)

kpos = itoxyz(2443:2500 , 20, 20, 13)


# }

Run the code above in your browser using DataLab