Reformats anarray without changing its values numerically.
dimi The dimensions of the result. Alternatively, you can specify the dimensions in a vector. See the Example section for more information.
TIP: REFORM is useful for removing degenerate leading dimensions of size one. These leading dimensions can be created when you extract a subarray from an array with more dimensions.
a = intarr(10,10, 10)
b = a(5,*,*)
INFO, b, REFORM(b)
B INT = Array(1, 10, 10)
Expression INT = Array(10, 10)
b = REFORM(a,200,5) b = REFORM(a,[200,5])
b
, with dimensions of (200,5), from a
.