comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » do loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: do loop [message #93075 is a reply to message #93047] Thu, 21 April 2016 08:48 Go to previous message
tonyhey is currently offline  tonyhey
Messages: 1
Registered: April 2016
Junior Member
If you really need the index names, use (ordered) hash variable:
You can use it as normal variables and also loop thru this


IDL>dep = findgen(1,500)
IDL>col = orderedhash()

IDL>for i=0, 9 do $
IDL> col[string(i,form='(i1.1)')+'1'] = dep[0,(i*50):((i+1)*50)-1]

IDL> foreach values, col, name do print,name
IDL> help,col['31']
IDL> print,col['51']

A.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Bootstrap analysis in IDL
Next Topic: running script

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:10:08 PDT 2025

Total time taken to generate the page: 0.00407 seconds