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

Home » Public Forums » archive » weird behaviour with cgdemodata
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
weird behaviour with cgdemodata [message #76622] Tue, 21 June 2011 07:26
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
I'm sure there's a good reason why this happens, but it has me very confused:

IDL> i = 5
IDL> print, i, n_elements(cgdemodata(i))
4 65536

Okay, that looks fine. Now what if I put that in a for loop?


IDL> for i=0,5 do print, i, n_elements(cgdemodata(i))
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
0 101
...repeat ad infinutm, i.e. until you hit Ctrl-C


What is going on???

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Strange behaviour ? of Subscript range values of the form low:high
Next Topic: Composite images

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

Current Time: Wed Oct 08 13:32:28 PDT 2025

Total time taken to generate the page: 0.00534 seconds