Learn R Programming

RSEIS (version 2.4-1)

itoxyz: 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

  • ixIndex of X-array
  • iyIndex of Y-array
  • izIndex of Z-array (layer)

Examples

Run this code
itoxyz(24, 6, 6, 1)

 itoxyz(2443, 20, 20, 13)

Run the code above in your browser using DataLab