itoxyz {RSEIS}R Documentation

Vector Index to Matrix Index

Description

Given I index get ix,iy, iz and vice versa

Usage

itoxyz(i, nx, ny, nlay)

Arguments

i index to long vector
nx number of blocks in x axis
ny number of blocks in y axis
nlay number of blocks in z axis (layers)

Value

ix Index of X-array
iy Index of Y-array
iz Index of Z-array (layer)

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

Examples


 itoxyz(24, 6, 6, 1)

 itoxyz(2443, 20, 20, 13)


[Package RSEIS version 2.1-4 Index]