Routines (alphabetical) > Routines: R > READ_INTERFILE

# READ_INTERFILE

The READ_INTERFILE procedure reads image data stored in Interfile (v3.3) format.

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.

## Examples

READ_INTERFILE, ('0_11.hdr', X)

## Syntax

READ_INTERFILE, File, Data

## Return Value

Returns a 3-D array containing the image 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 3-D array of data as read from the file. Assumed to be a series of 2-D images.

## Keywords

None.

## Version History

Pre-4.0 | Introduced