S-Lang function to reverse a 1D array
Array_Type = reverse( Array_Type a )
This function returns a copy of the input array, where the elements are
now in reverse order. The input array must be one dimensional.
This function was taken from the ISIS (the Interactive Spectral Interpretation System)
distribution developed at the MIT Center for Space Research: more information
on ISIS is available at
http://space.mit.edu/CXC/ISIS/.
chips> x = [20:24]
chips> y = reverse(x)
chips> writeascii( stdout, x, y )
20 24
21 23
22 22
23 21
24 20
|