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 #2943 is a reply to message #2805] Thu, 06 October 1994 05:54 Go to previous messageGo 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 ??


That's easy - use LONGS:

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

You should always use longs when you're addressing arrays - just in case
someday you have a bigger array - you won't always get errors....


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

Well, for the loop you've written, you can use:

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


If you're using PV-WAVE, there's a couple of good gridders (in what
used to be the ARL) called FAST_GRID3 and GRID_3D. Sounds like
FAST_GRID3 would work pretty good for your data.

I'm sure IDL has some kind of gridder, but I don't know what it is or
what it does.

;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 19:04:41 PDT 2025

Total time taken to generate the page: 0.00177 seconds