X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Nov 2012 09:08 AM by  anon
use of temporary in IDL
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
06 Nov 2012 09:08 AM
    I had a question regarding the use of temporary in IDL. I wanted to re-order a 3D array. Suppose the array is vol = IntArr( 512, 512, 287 ) I sorted the Z dimension and got the indices. The command I then used was vol = temporary( vol[ *, *, sorted_z] ) Despite this, the memory used is still the same if I don’t use temporary (almost 5 times the size of the array)Is this the correct way to use temporary? If I am using it correctly, is it just the IDL way of reading columns and rows? Is there another way of 3 D sorting an array that is faster than this method? Thanks, Rohit
    You are not authorized to post a reply.