SIZE()函数
1. Syntex
Result = SIZE( Expression [, /L64] [, /DIMENSIONS | , /FILE_LUN | , /FILE_OFFSET | ,
/N_DIMENSIONS | , /N_ELEMENTS | , /SNAME, | , /STRUCTURE | , /TNAME | , /TYPE] )
The SIZE function returns size and type information for its argument if no keywords are set. If a keyword is set, SIZE returns the specified quantity.
Examples
2. Example
PRO SIZE_Function
ARR_1=INDGEN(3,4)
print,SIZE(ARR_1)
;返回值为2 3 4 2 12
;经查阅书本,2代表的是数据的类型——16位符号化整型,3代表列,4代表行,12代表数据的个数
END