SLICE Name
Slice
Purpose
Slice a two dimensional array out of a three dimensional array.
Category
Array
Calling Sequence
result = Slice(indata, ortn, axes) Inputs
indata: a three-dimensional array to be sliced
ortn: one of (0,1,2) indicating the (XY, XZ, YZ) orientations for
the result.
axes: a three element vector giving the coordinates along each
axis where the data should be sliced.
Outputs
result: a two dimensional array, a slice of indata.
Example
d = FltArr(200,100,19)
axes = [0,50,0]
ortn = 1
result = Slice(d,ortn,axes)
Help, result;
RESULT FLOAT = Array[200, 19]
result = Slice(d,0,axes)
Help, result
RESULT FLOAT = Array[200, 100]
Modification History
Written by: Edward C. Wiebe, 2000-06-09.