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

Home » Public Forums » archive » Re: Nearest Neighbor ... again!
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: Nearest Neighbor ... again! [message #71634 is a reply to message #71633] Thu, 08 July 2010 06:21 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fabzi writes:

> You probably have been asked many times, but once again this
> apparently simple problem is driving me crazy. The problem is famous:
>
> I have a 2D grid defined by x1 (dim 2 array, for example lons) and y1
> (dim2 array, for example lats). And I want to fit it to a second grid
> x2, y2. More precisely, I want to know the indexes in GRID1 that are
> the closest to each of my points in GRID2. The output of my function
> has then the same dimension as GRID2.

Unless I completely miss the point, this seems to me
to be a simple nearest neighbor interpolation from one
grid to another. CONGRID has been used for this purpose
for years. :-(

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sale HAMILTON watches(www.nike-black.com)
Next Topic: diffusion list on GDL

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

Current Time: Sat Oct 11 20:16:40 PDT 2025

Total time taken to generate the page: 0.72129 seconds