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

Home » Public Forums » archive » matching irregular data sets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
matching irregular data sets [message #27786] Wed, 07 November 2001 15:45 Go to next message
Steve W. Nesbitt is currently offline  Steve W. Nesbitt
Messages: 1
Registered: November 2001
Junior Member
Howdy,

This may or may not be a dumb question. I am working on matching two
irregularly-spaced remote sensing data sets, specifically doing a
nearest-neighbor or bilinear interpolation of one data set to another.
I have written a routine to do this, but it is painfully slow since the
arrays I'm matching are lat/lon grids [400,3000]. I have searched the
manual ad nauseum! for an IDL canned routine to do this, but they seem
to require that the output grids be regularly spaced. I would like the
output to be gridded to the second irregular grid, and it would be nice
if it would return the indices of the original grid in the output. Let
me know if one of you IDL gurus can help me out on this one.

Many thanks,
-Steve

____________________________________________________________ ____________
Steve Nesbitt 135 S 1460 E WBB Rm. 806C
Ph.D. Research Assistant Salt Lake City, UT 84112-0110
Tropical Convection Research Group Phone: 801-581-3458
University of Utah-Department of Meteorology Fax: 801-585-3681
http://www.met.utah.edu/zipser/nesbitt
Re: matching irregular data sets [message #27908 is a reply to message #27786] Thu, 08 November 2001 17:25 Go to previous message
air_jlin is currently offline  air_jlin
Messages: 22
Registered: July 2001
Junior Member
hi Steve,

i'm not an idl guru, but my experience with interpolating large fields
is that it's just plain slow (i've tried a couple methods).

if you're interested in how i did my near neighbor, you can see it at:

http://www.johnny-lin.com/lib.html#atmos

it's called NN_INTERP, and isn't the prettiest, but it seems to work.
the main slow down is that it calculates the distances between *all*
possible location pairs, since i wanted the procedure to be able to
accomodate irregular input and output grids. if you have a timeseries
of fixed grids, you can speed things up tremendously by precalculating
the distances (the procedure has that option in it).

hope this helps!

best,
-Johnny


-------------------------------------------
Johnny Lin
CIRES, University of Colorado
Work Phone: (303) 735-1636
Web: http://cires.colorado.edu/~johnny/
-------------------------------------------


"Steve W. Nesbitt" <snesbitt@met.utah.edu> wrote in message
news:<3BE9C7B3.DE76D102@met.utah.edu>...
> Howdy,
>
> This may or may not be a dumb question. I am working on matching two
> irregularly-spaced remote sensing data sets, specifically doing a
> nearest-neighbor or bilinear interpolation of one data set to another.
> I have written a routine to do this, but it is painfully slow since the
> arrays I'm matching are lat/lon grids [400,3000]. I have searched the
> manual ad nauseum! for an IDL canned routine to do this, but they seem
> to require that the output grids be regularly spaced. I would like the
> output to be gridded to the second irregular grid, and it would be nice
> if it would return the indices of the original grid in the output. Let
> me know if one of you IDL gurus can help me out on this one.
>
> Many thanks,
> -Steve
Re: matching irregular data sets [message #27920 is a reply to message #27786] Thu, 08 November 2001 12:39 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Is BILINEAR(P, X, Y) of any use? Or is it the one that is so slow?

Pavel

"Steve W. Nesbitt" wrote:
>
> Howdy,
>
> This may or may not be a dumb question. I am working on matching two
> irregularly-spaced remote sensing data sets, specifically doing a
> nearest-neighbor or bilinear interpolation of one data set to another.
> I have written a routine to do this, but it is painfully slow since the
> arrays I'm matching are lat/lon grids [400,3000]. I have searched the
> manual ad nauseum! for an IDL canned routine to do this, but they seem
> to require that the output grids be regularly spaced. I would like the
> output to be gridded to the second irregular grid, and it would be nice
> if it would return the indices of the original grid in the output. Let
> me know if one of you IDL gurus can help me out on this one.
>
> Many thanks,
> -Stevee
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: improving animation/mpeg quality
Next Topic: Re: Ad: Hyperspectral Postdoc position

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

Current Time: Fri Oct 10 05:50:24 PDT 2025

Total time taken to generate the page: 0.79917 seconds