In order to access the real and imaginary components of a complex array, you need to utilize the REAL_PART and IMAGINARY functions :
IDL> data = CINDGEN (3, 3)
IDL> PRINT, data
( 0.000000, 0.000000) ( 1.00000, 0.000000) ( 2.00000, 0.000000)
( 3.00000, 0.000000) ( 4.00000, 0.000000) ( 5.00000, 0.000000)
( 6.00000, 0.000000) ( 7.00000, 0.000000) ( 8.00000, 0.000000)
IDL> PRINT, REAL_PART (data)
0.000000 1.00000 2.00000
3.00000 4.00000 5.00000
6.00000 7.00000 8.00000
IDL> PRINT, IMAGINARY (data)
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
|