powered by
Given I index get ix,iy, iz for three dimensional grids.
itoxyz(i, nx, ny, nz)
index to long vector
number of blocks in x axis
number of blocks in y axis
number of blocks in z axis (layers)
Index of X-array
Index of Y-array
Index of Z-array (layer)
xyztoi
# NOT RUN { itoxyz(24, 6, 6, 1) kpos = itoxyz(2443:2500 , 20, 20, 13) # }
Run the code above in your browser using DataLab