Routines (alphabetical) > Routines: E > EXPAND

EXPAND

Syntax | Arguments | Keywords | Version History | See Also

The EXPAND procedure shrinks or expands a two-dimensional array, using bilinear interpolation. It is similar to the CONGRID and REBIN routines.

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

Syntax

EXPAND, A, Nx, Ny, Result [, FILLVAL=value] [, MAXVAL=value]

Arguments

A

A two-dimensional array to be magnified.

Nx

Desired size of the X dimension, in pixels.

Ny

Desired size of the Y dimension, in pixels.

Result

A named variable that will contain the magnified array.

Keywords

FILLVAL

Set this keyword equal to the value to use when elements larger than MAXVAL are encountered. The default is -1.

MAXVAL

Set this keyword equal to the largest desired value. Elements greater than this value are set equal to the value of the FILLVAL keyword.

Version History

Pre 4.0

Introduced

See Also

CONGRID , REBIN