X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04 May 2005 07:29 PM by  anon
Complex Array
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
04 May 2005 07:29 PM
    I have a complex array -2D u,v wind field with a sample below: (u,v) (u,v) (u,v) (u,v) etc... my procedure reads in the data but I cannot seem to get the array I need in order to contour the data. It gives me only one element returned. Any suggestions?

    Deleted User



    New Member


    Posts:
    New Member


    --
    04 May 2005 07:29 PM
    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
    You are not authorized to post a reply.