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 #2946 is a reply to message #2805] Thu, 06 October 1994 07:44 Go to previous message
landers is currently offline  landers
Messages: 45
Registered: May 1993
Member
In article <36v30k$14n@danberg.llnl.gov>, dan@danberg.llnl.gov (Dan Bergmann) writes:
[ snip ]

|> 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. Can I write do loops with limits
|> greater than 32,767 ??

Use LONG integers for loop control:

for i = 0L, Num-1 do ...
^^

In general, you should always use longs for array indexing operations to
prevent just this problem.

|> .... Could I rewrite this in vector syntax using the
|> where statement ??

For the loop you have above, use something like:

i = lindgen( Num )
data(longitude(i),latitude(i)) = data(longitude(i),latitude(i)) + value(i)

On gridding - if you're using PV-WAVE, check out FAST_GRID3. I have had very
good luck gridding data similar to what you're describing with this function.

If this won't do it for you, check out GRID_3D.

If you have IDL, well, I'm sure they have some sort of gridding stuff, but I
can't speak to that...
;Dave
[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:03 PDT 2025

Total time taken to generate the page: 0.00405 seconds