The READ_SPR function reads a row-indexed sparse array from a specified file and returns the array as the result. Row-indexed sparse arrays are created using the SPRSIN function and written to a file using the WRITE_SPR function.
This routine is written in the IDL language. Its source code can be found in the file
subdirectory of the IDL distribution.
Suppose we have already saved a row-indexed sparse array to a file named
, as described in the documentation for the WRITE_SPR routine. To read the sparse array from the file and store it in a variable
s, use the following command: