Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Storing values from loop in idl

  1. Mar 24, 2010 #1

    I am using IDL and want to store the values found using a loop. The only problem is each time the loop goes round, it re-writes all the values in the array. How do I store the values for use once the loop has finished? Seems like a really simple thing to want to do, Im surprised I can't do it or havn't had to do it before. Anyways here is what I have got so far, Ive had a go but it doesnt work:

    for num=0, 32 do begin

    DMID=(Basically I read the values in to this array from 32 seperate files)

    result=where(DMID, count)


    for imin, imax do begin


    This doesnt work anyway and seems like a slightly mental way of going about it to me but its what a friend told me to do. Any help, most appreciated.
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted