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

Home » Public Forums » archive » gridding large amounts of data
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: gridding large amounts of data [message #2928 is a reply to message #2805] Thu, 06 October 1994 22:44 Go to previous messageGo to previous message
agraps is currently offline  agraps
Messages: 35
Registered: September 1994
Member
dan@danberg.llnl.gov (Dan Bergmann) writes:

[..]
> ... I could do this in an ugly do loop that
> looked like

> data=fltarr(360,180)
> for i=1,num do $
> data(longitude(i),latitude(i)) = data(longitude(i),latitude(i)) + value(i)

> This works fine for small values of num, but for num>32,767 I get an error
> saying my do loop index is too large.

This is a kind of idl "gotcha". I wrestled with this on a late
evening, a few years ago, when I similarly had to loop for greater
than 32,767 times.

The secret is to make i a long integer:
for iL=1,num do $
^^^

And that will solve your problem.

Amara


************************************************************ **********
Amara Graps email: agraps@netcom.com
Computational Physicist vita: finger graps@clio.arc.nasa.gov
Intergalactic Reality bio: finger -lm agraps@netcom.com
************************************************************ **********
"Picture a massless particle." --A Koan of Modern Physics

--

************************************************************ **********
Amara Graps email: agraps@netcom.com
Computational Physicist vita: finger graps@clio.arc.nasa.gov
Intergalactic Reality bio: finger -lm agraps@netcom.com
************************************************************ **********
"Picture a massless particle." --A Koan of Modern Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RE: concatenating files
Next Topic: Re: LINUX version of IDL

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

Current Time: Wed Oct 08 18:59:12 PDT 2025

Total time taken to generate the page: 0.00483 seconds