X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Feb 2011 11:02 PM by  anon
How do you label output variables in an IDL FOR loop for further processing outside the loop?
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
09 Feb 2011 11:02 PM
    I have an IDL FOR loop which is something like this: atom = G[*,k:*:215] What I would like to be able to do is to store in memory the array for each atom, say, atom_k and then call these different variables to perform further operations outside the FOR loop. Conceptually, I want to label the "atom" variable with the "k" counter somewhat like this: FOR k = 1,200 DO atom(k) = G[*,k:*:215] ENDFOR Of course, this doesn't work because "k" is no longer a label in this case. Does anyone know?
    You are not authorized to post a reply.