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

Home » Public Forums » archive » Re: irregular-to-irregular interpolation
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
Re: irregular-to-irregular interpolation [message #76016] Sun, 15 May 2011 12:15
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Aha! Yes, GRIDDATA with XOUT and YOUT is a winner!

-Jeremy.
Re: irregular-to-irregular interpolation [message #76031 is a reply to message #76016] Fri, 13 May 2011 05:05 Go to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
On May 12, 5:50 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article <k-bowman-A42E1F.16352312052...@news.tamu.edu>,
>  "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
>
>> I think you need to use TRIGRID with the XOUT and YOUT keywords.
>
>> Ken Bowman
>
> That may not work either.  You will have to do some experimentation,
> and I bet you can fool TRIGRID into doing what you want.
>
> Ken Bowman

TRIGRID with XOUT and YOUT will output to an irregularly spaced grid.
If you need to output to scattered points, use GRIDDATA with the XOUT
and YOUT keywords.
Re: irregular-to-irregular interpolation [message #76039 is a reply to message #76031] Thu, 12 May 2011 14:50 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <k-bowman-A42E1F.16352312052011@news.tamu.edu>,
"Kenneth P. Bowman" <k-bowman@null.edu> wrote:

> I think you need to use TRIGRID with the XOUT and YOUT keywords.
>
> Ken Bowman

That may not work either. You will have to do some experimentation,
and I bet you can fool TRIGRID into doing what you want.

Ken Bowman
Re: irregular-to-irregular interpolation [message #76040 is a reply to message #76039] Thu, 12 May 2011 14:35 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<61009620-8115-4a53-a223-b2f8189a186c@w36g2000vbi.googlegroups.com>,
Gray <graylikethecolor@gmail.com> wrote:

> On May 12, 11:01�am, Jeremy Bailin <astroco...@gmail.com> wrote:
>> This is one of those this-must-exist-but-I-can't-find-it cases:
>>
>> I have a quantity which is sampled irregularly over a 2D region. I would like to interpolate its value at a number of irregularly-spaced locations. I've only been able to find functions that go to and from regular grids - so I could go from the irregularly-sampled grid to a regular grid, and then from the regular grid to the irregularly-spaced interpolation points, but that seems silly. Is there something that already exists that goes directly from irregularly-sampled data to irregularly-spaced interpolation points?
>>
>> -Jeremy.
>
> You should be able to use INTERPOLATE, with your x and y vectors being
> your irregular points.

I don't think that INTERPOLATE will work. INTERPOLATE expects
a gridded input field.

I think you need to use TRIGRID with the XOUT and YOUT keywords.

Ken Bowman
Re: irregular-to-irregular interpolation [message #76051 is a reply to message #76040] Thu, 12 May 2011 09:58 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
No, INTERPOLATE requires that the original samples be on a regular grid.

I probably should just code up my own, but I don't have time so I'm resorting to using TRIGRID to go from irregular samples to a regular grid, and then INTERPOLATE to go from the regular grid to my desired locations.

-Jeremy.
Re: irregular-to-irregular interpolation [message #76052 is a reply to message #76051] Thu, 12 May 2011 09:46 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On May 12, 11:01 am, Jeremy Bailin <astroco...@gmail.com> wrote:
> This is one of those this-must-exist-but-I-can't-find-it cases:
>
> I have a quantity which is sampled irregularly over a 2D region. I would like to interpolate its value at a number of irregularly-spaced locations. I've only been able to find functions that go to and from regular grids - so I could go from the irregularly-sampled grid to a regular grid, and then from the regular grid to the irregularly-spaced interpolation points, but that seems silly. Is there something that already exists that goes directly from irregularly-sampled data to irregularly-spaced interpolation points?
>
> -Jeremy.

You should be able to use INTERPOLATE, with your x and y vectors being
your irregular points.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Parental Success!
Next Topic: Coyote and Catalyst Library Updates

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

Current Time: Wed Oct 08 11:29:02 PDT 2025

Total time taken to generate the page: 0.00660 seconds