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

Home » Public Forums » archive » Array is empty after for 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: Array is empty after for loop [message #91490 is a reply to message #91482] Mon, 20 July 2015 11:40 Go to previous messageGo to previous message
a146397258 is currently offline  a146397258
Messages: 7
Registered: July 2015
Junior Member
On Monday, July 20, 2015 at 3:25:38 AM UTC-6, Dete van Eeden wrote:
> Hallo
>
> I have an array profile=fltarr(500,6)
>
> I read values into this array in a for loop
>
> for k=0,5 do begin
>
> for i=0,499 do begin
>
> profile(i,k) = .....
>
> endfor
>
> endfor
>
> while Im in the loop, there are values in the array profile but as soon as I exit the loop the whole array is empty?
>
> How can this be?

It runs fine for me. So the error must be in the part of the loop that you omitted.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Averaging values in an array
Next Topic: Getting Transects in IDL

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

Current Time: Wed Oct 08 18:55:53 PDT 2025

Total time taken to generate the page: 0.00424 seconds