READ_INTERFILE

The READ_INTERFILE procedure reads image data stored in Interfile (v3.3) format and returns a 3D array.

Note: this is a simplistic reader. READ_INTERFILE can only read a series of images if all images have the same height and width. It does not get additional keyword information beyond what is needed to read the image data. If any problems occur when reading the file, READ_INTERFILE prints a message and stops.

If the data is stored on a bigendian machine and read on a littleendian machine (or vice versa) the order of bytes in each pixel element may be reversed, requiring a call to BYTEORDER

This routine is written in the IDL language. Its source code can be found in the file read_interfile.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

READ_INTERFILE, File, Data

Arguments

File

A scalar string containing the name of the Interfile to read. Note: if the Interfile has a header file and a data file, this should be the name of the header file (also called the administrative file).

Data

A named variable that will contain a 3D array of data as read from the file. Assumed to be a series of 2D images.

Example

READ_INTERFILE, '0_11.hdr', X