LINDGEN
 
The 
 
LINDGEN function returns a longword integer 
 
array with the specified dimensions. Each element of the array is set to the value of its one-dimensional subscript.
 
Calling Sequence
 
Result = LINDGEN(
D
1
, ..., D
n
)
 
 
Arguments
 
D
i
 
The dimensions of the result. The dimension parameters can be any scalar expression. Up to eight dimensions can be specified. If the dimension arguments are not integer values, IDL will convert them to integer values before creating the new array.
 
 
 
Example
 
To create L, a 10-element by 10-element longword array where each element is set to the value of its one-dimensional subscript, enter:
 
L = LINDGEN(10, 10)