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 #78738 is a reply to message #78737] Mon, 12 December 2011 02:34 Go to previous messageGo to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
> 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)
[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: Sat Oct 11 14:46:27 PDT 2025

Total time taken to generate the page: 1.27995 seconds