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

Home » Public Forums » archive » Re: NEAREST LOCATION _ ARRAY VALUE PROBLEM
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 LOCATION _ ARRAY VALUE PROBLEM [message #44334] Mon, 06 June 2005 00:24
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <1117998502.492305.91910@z14g2000cwz.googlegroups.com>,
"Giorgos" <G.Aloizos@gmail.com> wrote:


> Hi....I have the following problem
> I have 2 arrays of exactly same dimensions giving latitudes and
> longitudes
> On the other part I have 3 arrays 2 with latitudes and longitudes again
> and a 3rd giving me the size of a variable....it is actually like a
> satellite image with each pixel giving me the brightness. I want to
> locate in the "image" where is the nearest pixel-location to each of the
> elements of my first group arrays that I have? How can I do it? is there
> any routine in IDL?I need to obtain closest pixel in a sense
>

If you're trying to rebin irregularly grided data onto a regular grid,
then you want TRIANGULATE (and TRIGRID).

If you want to weight the output by the number of input points, you
might want HISTOGRAM (or HIST_ND) instead.

If you want to know which points of the source data fall into each
point of the destination grid, then you want HISTOGRAM.

Chris.
[Message index]
 
Read Message
Previous Topic: NEAREST LOCATION _ ARRAY VALUE PROBLEM
Next Topic: Help with XML and DTD/Shema !!

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

Current Time: Wed Oct 08 17:34:51 PDT 2025

Total time taken to generate the page: 0.00444 seconds