Standard Library procedure that shows a cyclic sequence of images stored in a three-dimensional array.
rate (optional) The initial rate, in approximate frames per second. If rate is omitted, the inter-frame delay is set at 0.01 second.
The rate of display varies with the make of computer, amount of physical memory, and number of frames.
Available memory also restricts the maximum amount of data that can be displayed in a loop.
OPENR, unit, FILEPATH('headspin.dat', Subdir = 'data'), /Get_Lun
; Open the file containing the cross sections.
head = BYTARR(256, 256, 32)
; Create a three-dimensional byte array large enough to contain all cross-sections.
READU, unit, head
; Read the images.
FREE_LUN, unit
; Close the file and free the file unit number.
LOADCT, 15
; Load a color table.
MOVIE, head, Order = 0
; Cycle through the images.