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

Home » Public Forums » archive » Re: The best way to bin data to a grid? (may not be an IDL-specific question)
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: The best way to bin data to a grid? (may not be an IDL-specific question) [message #78737 is a reply to message #78736] Mon, 12 December 2011 02:41 Go to previous messageGo to previous message
Jasdeep Anand is currently offline  Jasdeep Anand
Messages: 16
Registered: August 2011
Junior Member
On Dec 12, 10:34 am, Fabzou <fabien.mauss...@tu-berlin.de> wrote:
>> In all seriousness though, would routines like GRIDDATA, TRIGRID, etc
>> break down for such a large input?
>
> Well, I am not very familiar with GRIDDATA but 1500000 points is not so
> large.
>
> It not difficult to find out. It mostly depends on your available
> memory, but it seems allright. IDL is just not very very fast. If you
> have to do it many times, that's maybe not the best tool for it...
>
>   n = 1500000L
>   lons = Scale_Vector(RANDOMU(seed, n), -180., 180)
>   lats = Scale_Vector(RANDOMU(seed, n), -90., 90.)
>   TRIANGULATE, lons, lats, Triangles
>   data = FLTARR(n)
>   out = GRIDDATA(lons, lats, data, $
>     START=[0.05D,0.05D], DIMENSION=[3600,1800], DELTA=[0.1D,0.1D],$
>     TRIANGLES=triangles, /NEAREST_NEIGHBOR)

Thanks Fabozu! I'm coding my own attempt that this as we speak.

I've noticed from the few examples I've seen from the web that both
TRIGRID and GRIDDATA can be used for this problem. How do both
routines differ from each other, and when should either one be used?
Again, I'm grateful for any advice you all can give me - I'm still
learning!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLDOC 3.4.1 Problem
Next Topic: Coyote Graphics Updates

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

Current Time: Wed Oct 08 19:03:31 PDT 2025

Total time taken to generate the page: 0.00475 seconds