Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Expensive l...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 5469 of 6129
Post > Topic >>

Re: Expensive loops... can they be avoided?

by Rainer <renari@[EMAIL PROTECTED] > Feb 26, 2008 at 08:15 AM

Thank you Allan. The TRIGRID solution works, and is amazingly fast,
but unfortunately not quite what I want.

> not be suitable. You can also save xp, yp and tr between calls if your
> "a" data is changing but everything else is staying the same which will
> also speed things up a bit.

Saving the grid indices in my algorithm (nearestr and nearestchi) into
an array and re-using
them already helps a lot but occasionally they need to be re-
calculated.

> I've only ever used triangulate and friends for display purposes so
> can't claim to be an expert on how accurate "b" will end up - since you
> were just picking the nearest point before I guess you're not overly
> concerned with accuracy.

Also my problem is "only" a displaying issue. The nearest neighbor
search was intended, though. I'm visualizing data from numerical
simulations and the points in "A" lie at the center of grid cells with
the value being representative for the whole cell. An interpolation
would give a wrong impression. If the grid is coarse, it should be
visible.


Thanks again,
Rainer
 




 4 Posts in Topic:
Expensive loops... can they be avoided?
Rainer <renari@[EMAIL   2008-02-26 01:41:45 
Re: Expensive loops... can they be avoided?
Allan Whiteford <allan  2008-02-26 23:15:21 
Re: Expensive loops... can they be avoided?
Rainer <renari@[EMAIL   2008-02-26 08:15:19 
Re: Expensive loops... can they be avoided?
Spon <christoph.blau@[  2008-03-04 14:02:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:19:54 CDT 2008.